Skip to content

Commit

Permalink
build(ci): submodule should sign commits (cryostatio#1113)
Browse files Browse the repository at this point in the history
  • Loading branch information
aali309 authored Sep 27, 2023
1 parent bbd7614 commit b1c5368
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/submodule.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
if: ${{ github.repository_owner == 'cryostatio' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
repository: cryostatio/cryostat
token: "${{ secrets.SUBMODULE_TOKEN }}"
Expand All @@ -29,6 +29,13 @@ jobs:
printf "Expected remote branch %s, found branch %s\n" "${{ github.ref_name }}" "$remote_branch" >&2
exit 1
fi
- name: Import GPG key
uses: crazy-max/ghaction-import-gpg@v6
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.GPG_PASSPHRASE }}
git_user_signingkey: true
git_commit_gpgsign: true
- name: Update submodule to latest commit
run: |
git submodule update --init
Expand All @@ -40,5 +47,5 @@ jobs:
git config user.name "github-actions[bot]"
git add --all
git_hash="$(git rev-parse --short :web-client)"
git commit -m "build(web-client): update submodule to $git_hash" || echo "No changes to commit"
git commit -S -m "build(web-client): update submodule to $git_hash" || echo "No changes to commit"
git push

0 comments on commit b1c5368

Please sign in to comment.