-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
github workflow to auto update bootstrap files on push to main
- Loading branch information
1 parent
c5aee9d
commit d0736c5
Showing
3 changed files
with
38 additions
and
1 deletion.
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 |
---|---|---|
|
@@ -23,3 +23,5 @@ jobs: | |
make self | ||
make self | ||
time make self | ||
update_bootstrap: | ||
uses: ./.github/workflows/update_bootstrap.yml |
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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Update Bootstrap Files | ||
|
||
on: | ||
workflow_call: | ||
|
||
jobs: | ||
update-files: | ||
strategy: | ||
matrix: | ||
os: ["ubuntu-latest"] | ||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Configure Git | ||
run: | | ||
git config user.name "github-actions[bot]" | ||
git config user.email "github-actions[bot]@users.noreply.github.com" | ||
- name: Regenerate bootstrap files | ||
run: make update_bootstrap | ||
|
||
- name: Commit and push changes | ||
run: | | ||
if [ -n "$(git status --porcelain)" ]; then | ||
echo "Pushing changes." | ||
git add . | ||
git commit -m "Auto-update bootstrap files" | ||
git push | ||
else | ||
echo "No changes detected." | ||
exit 0 | ||
fi |
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