-
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
1 parent
a3914b3
commit 8ebdcf8
Showing
2 changed files
with
18 additions
and
10 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 |
---|---|---|
|
@@ -51,15 +51,24 @@ jobs: | |
|
||
- name: Auto-commit changes | ||
id: auto-commit-action | ||
uses: stefanzweifel/[email protected] | ||
with: | ||
commit_message: auto-commit of artifacts | ||
branch: main | ||
commit_options: '--no-verify --signoff -S' | ||
file_pattern: 'syntaxes/* images/*' | ||
commit_author: "${{ steps.import-gpg.outputs.name }} <${{ steps.import-gpg.outputs.email }}>" | ||
commit_user_name: "${{ steps.import-gpg.outputs.name }}" | ||
commit_user_email: "${{ steps.import-gpg.outputs.email }}" | ||
run: | | ||
git config --global commit.gpgsign true | ||
git config --global user.email "${{ steps.import-gpg.outputs.email }}" | ||
git config --global user.name "${{ steps.import-gpg.outputs.name }}" | ||
git config --global user.signingkey "${{ steps.import-gpg.outputs.fingerprint }}" | ||
git add syntaxes/* images/* | ||
git commit -S -m "auto-commit of artifacts" | ||
git push --signed=false | ||
# id: auto-commit-action | ||
# uses: stefanzweifel/[email protected] | ||
# with: | ||
# commit_message: auto-commit of artifacts | ||
# branch: main | ||
# commit_options: '-S' | ||
# file_pattern: 'syntaxes/* images/*' | ||
# commit_user_name: ${{ steps.import-gpg.outputs.name }} | ||
# commit_user_email: ${{ steps.import-gpg.outputs.email }} | ||
|
||
- name: Run if changes have been detected | ||
if: steps.auto-commit-action.outputs.changes_detected == 'true' | ||
|
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