ci: use gpg to sign commit [skip ci]

This commit is contained in:
Baptiste Augrain
2025-01-08 04:03:35 +01:00
parent 6818d7e831
commit 13cedd5950
8 changed files with 38 additions and 15 deletions

View File

@@ -18,6 +18,7 @@ on:
branches: [ insider ]
paths-ignore:
- '**/*.md'
- 'upstream/*.json'
pull_request:
branches: [ insider ]
paths-ignore:

View File

@@ -18,6 +18,7 @@ on:
branches: [ insider ]
paths-ignore:
- '**/*.md'
- 'upstream/*.json'
pull_request:
branches: [ insider ]
paths-ignore:

View File

@@ -56,19 +56,28 @@ jobs:
run: ./build.sh
if: env.SHOULD_BUILD == 'yes'
- 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
if: env.SHOULD_BUILD == 'yes' && github.event.inputs.dont_update != 'true'
- name: Update upstream version
run: ./update_upstream.sh
if: env.SHOULD_BUILD == 'yes' && github.event.inputs.dont_update != 'true'
- name: Commit changes
uses: iarekylew00t/verified-bot-commit@v1
with:
ref: ${{ env.COMMIT_REF }}
message: ${{ env.COMMIT_MESSAGE }}
token: ${{ secrets.STRONGER_GITHUB_TOKEN }}
files: |
upstream/*.json
if: env.SHOULD_BUILD == 'yes' && env.SHOULD_COMMIT == 'yes'
# - name: Commit changes
# uses: iarekylew00t/verified-bot-commit@v1
# with:
# ref: ${{ env.COMMIT_REF }}
# message: ${{ env.COMMIT_MESSAGE }}
# token: ${{ secrets.STRONGER_GITHUB_TOKEN }}
# files: |
# upstream/*.json
# if: env.SHOULD_BUILD == 'yes' && env.SHOULD_COMMIT == 'yes'
- name: Prepare source
run: ./prepare_src.sh

View File

@@ -18,6 +18,7 @@ on:
branches: [ insider ]
paths-ignore:
- '**/*.md'
- 'upstream/*.json'
pull_request:
branches: [ insider ]
paths-ignore:

View File

@@ -18,6 +18,7 @@ on:
branches: [ master ]
paths-ignore:
- '**/*.md'
- 'upstream/*.json'
pull_request:
branches: [ master ]
paths-ignore:

View File

@@ -18,6 +18,7 @@ on:
branches: [ master ]
paths-ignore:
- '**/*.md'
- 'upstream/*.json'
pull_request:
branches: [ master ]
paths-ignore:

View File

@@ -18,6 +18,7 @@ on:
branches: [ master ]
paths-ignore:
- '**/*.md'
- 'upstream/*.json'
pull_request:
branches: [ master ]
paths-ignore: