Skip to content

Commit 539f3ff

Browse files
authored
chore(ci): add GPG commit signing to weekly-update workflow (#134)
* chore(ci): add GPG commit signing to weekly-update workflow * chore(ci): improve Claude prompt structure in weekly-update * chore(ci): simplify Claude prompt to just invoke /updating skill
1 parent 8d771cb commit 539f3ff

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/weekly-update.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,14 @@ jobs:
5959
GH_TOKEN: ${{ github.token }}
6060
run: |
6161
BRANCH_NAME="weekly-update-$(date +%Y%m%d)"
62-
git config user.name "github-actions[bot]"
63-
git config user.email "github-actions[bot]@users.noreply.github.com"
6462
git remote set-url origin "https://x-access-token:${GH_TOKEN}@github.com/${{ github.repository }}.git"
6563
git checkout -b "$BRANCH_NAME"
6664
echo "branch=$BRANCH_NAME" >> $GITHUB_OUTPUT
6765
66+
- uses: SocketDev/socket-registry/.github/actions/setup-git-signing@6096b06b1790f411714c89c40f72aade2eeaab7c # main
67+
with:
68+
gpg-private-key: ${{ secrets.BOT_GPG_PRIVATE_KEY }}
69+
6870
- name: Run updating skill with Claude Code
6971
id: claude
7072
timeout-minutes: 30
@@ -83,7 +85,7 @@ jobs:
8385
set +e
8486
claude --print --dangerously-skip-permissions \
8587
--model sonnet \
86-
"/updating - Run the updating skill to update all dependencies. Create atomic commits for each update. You are running in CI mode - skip builds and tests. Do not push or create a PR." \
88+
"/updating" \
8789
2>&1 | tee claude-output.log
8890
CLAUDE_EXIT=${PIPESTATUS[0]}
8991
set -e
@@ -157,6 +159,9 @@ jobs:
157159
path: claude-output.log
158160
retention-days: 7
159161

162+
- uses: SocketDev/socket-registry/.github/actions/cleanup-git-signing@6096b06b1790f411714c89c40f72aade2eeaab7c # main
163+
if: always()
164+
160165
notify:
161166
name: Notify results
162167
needs: [check-updates, apply-updates]

0 commit comments

Comments
 (0)