Skip to content

Commit

Permalink
ci: sign the commit for images optimization (#430)
Browse files Browse the repository at this point in the history
  • Loading branch information
fharper authored Jul 24, 2023
1 parent be80a82 commit 5ed921e
Showing 1 changed file with 18 additions and 4 deletions.
22 changes: 18 additions & 4 deletions .github/workflows/optimize-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,23 @@ jobs:
id: optimize-images
uses: Doist/optimize-images-action@v2

- name: Create a PR with the new images
- name: Import the kube1st GPG key
id: import-gpg
uses: crazy-max/[email protected]
with:
git_committer_name: "kube1st"
git_committer_email: "${{ secrets.GPG_EMAIL }}"
gpg_private_key: "${{ secrets.GPG_PRIVATE_KEY }}"
passphrase: "${{ secrets.GPG_PASSPHRASE }}"
git_user_signingkey: true
git_commit_gpgsign: true

- name: Create a PR for the new version
uses: peter-evans/[email protected]
with:
commit-message: "chore: optimize images with lossless compression"
delete-branch: true
body: ${{ steps.optimize-images.outputs.summary }}
token: ${{ secrets.DOCS_PERMISSIONS_TOKEN }}
committer: "kube1st <${{ secrets.GPG_EMAIL }}>"
branch: "optimize/images"
title: "chore: optimize new images with lossless compression"
body: ""
commit-message: "docs: create v${{ github.event.inputs.version }} documentation\n\n${{ steps.optimize-images.outputs.summary }}"

0 comments on commit 5ed921e

Please sign in to comment.