Skip to content

Commit

Permalink
feat: use gpg (#237)
Browse files Browse the repository at this point in the history
Signed-off-by: hlts2 <[email protected]>
  • Loading branch information
hlts2 authored Apr 9, 2024
1 parent 6ae0efd commit a3fb831
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/_build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ jobs:
- name: Set Git config
run: |
git config --global --add safe.directory ${GITHUB_WORKSPACE}
- uses: crazy-max/ghaction-import-gpg@v4
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
git_user_signingkey: true
git_commit_gpgsign: true
- name: Clone Vald repository
run: |
make vald/clone && make VALD_CHECKOUT_TARGET_NAME=${VALD_CHECKOUT_TARGET_NAME} vald/checkout
Expand Down Expand Up @@ -76,7 +81,7 @@ jobs:
git config --global user.email '[email protected]'
git remote set-url origin https://${GITHUB_USER}:${GITHUB_TOKEN}@github.com/$GITHUB_REPOSITORY
git add .
git commit -m "Update [vald sha: ${sha}]"
git commit -S --signoff -m "Update [vald sha: ${sha}]"
git push
- name: Create tag
if: ${{ steps.check_sha.outputs.UPDATE == 'true' && inputs.enable_tag_push == true }}
Expand Down

0 comments on commit a3fb831

Please sign in to comment.