Skip to content

Commit

Permalink
.github/workflows/google-fonts.yml: create individual commits
Browse files Browse the repository at this point in the history
  • Loading branch information
bevanjkay committed Oct 3, 2024
1 parent 9bbd9ce commit b3dc104
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/google-fonts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,20 @@ jobs:
- name: Create commits
if: env.changes == 'true'
run: |
git add .
git commit \
--message "${{matrix.mode}} Google Fonts" \
--message "This commit was created automatically by the [\`google-fonts\`](https://github.com/Homebrew/homebrew-cask/blob/master/.github/workflows/google-fonts.yml) workflow."
git ls-files --modified --others -z | xargs -0 -I {} sh -c "
FILENAME=\"{}\"
MESSAGE=\$(basename \"\$FILENAME\" .rb)
git add \"\$FILENAME\"
git commit \"\$FILENAME\" --message=\"\$MESSAGE: \$MODE\" --message=\"\$COMMIT_BODY\""
env:
COMMIT_BODY: >
This commit was created automatically by the
[\`google-fonts\`](https://github.com/Homebrew/homebrew-cask/blob/master/.github/workflows/google-fonts.yml)
workflow.
GIT_COMMITTER_NAME: ${{ steps.git-user-config.outputs.name }}
GIT_COMMITTER_EMAIL: ${{ steps.git-user-config.outputs.email }}
HOMEBREW_GPG_PASSPHRASE: ${{ secrets.BREWTESTBOT_GPG_SIGNING_SUBKEY_PASSPHRASE }}
MODE: ${{ matrix.mode }}

- name: Push commits
if: env.changes == 'true'
Expand Down

0 comments on commit b3dc104

Please sign in to comment.