Skip to content

Commit

Permalink
chore: Properly Sign Commits in Bump Version PRs (#489)
Browse files Browse the repository at this point in the history
  • Loading branch information
hrzlgnm authored Nov 2, 2024
1 parent e327907 commit 6d4d928
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions .github/workflows/auto-bump-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,28 +30,13 @@ jobs:
jq --indent 4 ".version = \"$NEW_VERSION\"" src-tauri/tauri.android.conf.json > src-tauri/tauri.android.conf.json.tmp && mv src-tauri/tauri.android.conf.json.tmp src-tauri/tauri.android.conf.json
echo "new_version=$NEW_VERSION" >> "$GITHUB_ENV"
- name: Set up GPG key
env:
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
run: |
echo "$GPG_PRIVATE_KEY" | gpg --batch --import
KEY_ID=$(gpg --list-secret-keys --keyid-format LONG | grep sec | awk '{print $2}' | cut -d'/' -f2)
echo "GPG Key ID: $KEY_ID"
git config --global user.signingkey "$KEY_ID"
echo $GPG_PASSPHRASE | gpg --batch --yes --passphrase-fd 0 --pinentry-mode loopback --sign -o /dev/null
- name: Configure Git user
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
- name: Create Pull Request
id: cpr
uses: peter-evans/create-pull-request@5e914681df9dc83aa4e4905692ca88beb2f9e91f # v7
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: "chore(version) : bump to ${{ env.new_version }}"
sign-commits: true
base: main
branch: chore/bump-version-${{ env.new_version }}
branch-suffix: random
Expand Down

0 comments on commit 6d4d928

Please sign in to comment.