-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
6 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ jobs: | |
clang-format: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name : Install just | ||
- name: Install just | ||
uses: extractions/setup-just@v2 | ||
with: | ||
just-version: 1.26.0 | ||
|
@@ -22,14 +22,16 @@ jobs: | |
git checkout ${GITHUB_HEAD_REF} | ||
git pull origin ${GITHUB_HEAD_REF} | ||
- name: Run format check on the C++ | ||
run: just install-denv init format-cpp | ||
|
||
- name: Set up git user as the bot | ||
run: | | ||
git config user.name 'github-actions[bot]' | ||
git config user.email 'github-actions[bot]@users.noreply.github.com' | ||
- name: Auto-commit the changes | ||
run: | | ||
git config user.name 'github-actions' | ||
git config user.email '[email protected]' | ||
git add . | ||
git commit -m "Apply clang-format" || echo "No changes to commit" | ||
git push origin HEAD:${GITHUB_HEAD_REF} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters