-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 changed file
with
24 additions
and
24 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 |
---|---|---|
|
@@ -89,31 +89,31 @@ jobs: | |
name: ${{ matrix.typeface }}-weights | ||
path: images/${{ matrix.typeface }}-weights.png | ||
|
||
commit: | ||
needs: build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
commit: | ||
needs: build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Download all workflow run artifacts | ||
uses: actions/download-artifact@v4 | ||
with: | ||
path: zenbones-mono/images | ||
merge-multiple: true | ||
- name: Download all workflow run artifacts | ||
uses: actions/download-artifact@v4 | ||
with: | ||
path: zenbones-mono/images | ||
merge-multiple: true | ||
|
||
- name: Commit and push image changes | ||
working-directory: zenbones-mono | ||
run: | | ||
git add images/*.png | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "Michael Chris Lopez" | ||
- name: Commit and push image changes | ||
working-directory: zenbones-mono | ||
run: | | ||
git add images/*.png | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "Michael Chris Lopez" | ||
status=$(git status --porcelain) | ||
status=$(git status --porcelain) | ||
if [[ -z "$status" ]]; then | ||
echo "No changes to commit" | ||
exit 0 | ||
else | ||
git commit -m "Update images" | ||
git push | ||
fi | ||
if [[ -z "$status" ]]; then | ||
echo "No changes to commit" | ||
exit 0 | ||
else | ||
git commit -m "Update images" | ||
git push | ||
fi |