-
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.
Added GPG Key info to sign off on bot actions
- Loading branch information
1 parent
167d401
commit 3d74ca6
Showing
1 changed file
with
9 additions
and
2 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 |
---|---|---|
|
@@ -25,14 +25,21 @@ jobs: | |
with: | ||
python-version: '3.x' | ||
|
||
- name: Import GPG key | ||
run: | | ||
echo "${{ secrets.GPG_PRIVATE_KEY }}" | gpg --batch --import | ||
echo "${{ secrets.GPG_PASSPHRASE }}" | gpg --batch --yes --passphrase-fd 0 --pinentry-mode loopback --edit-key F768450FB05B817D0B4BC26FB9B6A9B428C8676A trust quit | ||
- name: Run update script | ||
run: python update_repo.py | ||
|
||
- name: Commit and push changes | ||
run: | | ||
git config --global user.name 'github-actions[bot]' | ||
git config --global user.email 'github-actions[bot]@users.noreply.github.com' | ||
git config --global user.email '[email protected]' | ||
git config --global user.signingkey F768450FB05B817D0B4BC26FB9B6A9B428C8676A | ||
git config --global commit.gpgSign true | ||
git add . | ||
git commit -m "Update files based on submodule changes" | ||
git commit -m "Update files based on submodule changes" -S | ||
git pull --rebase origin ${{ github.event.pull_request.head.ref }} | ||
git push origin HEAD:${{ github.event.pull_request.head.ref }} |