Skip to content

Commit d5d0225

Browse files
committed
fixup
1 parent 363760a commit d5d0225

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/check-kernel-release.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,21 @@ jobs:
6363
echo "name=$BRANCH_NAME" >> $GITHUB_OUTPUT
6464
echo "Branch name: $BRANCH_NAME"
6565
66+
- name: Import GPG key
67+
if: steps.check.outputs.new_release == 'true'
68+
run: |
69+
echo "${{ secrets.AEL_BOT_GPG_PRIVATE_KEY }}" | gpg --batch --import
70+
echo "${{ secrets.AEL_BOT_GPG_PASSPHRASE }}" | gpg --batch --yes --passphrase-fd 0 --pinentry-mode loopback --quick-add-key $(gpg --list-secret-keys --with-colons | grep '^sec' | cut -d':' -f5) || true
71+
6672
- name: Set up git credentials
6773
if: steps.check.outputs.new_release == 'true'
6874
run: |
6975
set -e -o pipefail
7076
git config --global user.email "[email protected]"
7177
git config --global user.name "ael-bot"
78+
git config --global commit.gpgsign true
79+
git config --global user.signingkey $(gpg --list-secret-keys --keyid-format=long | grep '^sec' | head -1 | awk '{print $2}' | cut -d'/' -f2)
80+
git config --global gpg.program gpg
7281
7382
# Configure git to use the token for HTTPS operations
7483
git config --global url."https://ael-bot:${{ secrets.KERNEL_UPDATE_TOKEN }}@github.com/".insteadOf "[email protected]:"

0 commit comments

Comments
 (0)