Skip to content

Commit 3c2490a

Browse files
marythoughtclaude
andcommitted
fix(ci): sign bot commits and auto-update specs on build failure
Use the numeric user ID prefix in the github-actions[bot] email so commits are verified (required by branch protection). Make the update-vendored-specs workflow callable via workflow_call, and invoke it from test-deploy when the build fails — so stale specs get refreshed automatically without using the workflow_run trigger. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 08045ce commit 3c2490a

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/test-deploy.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,8 @@ jobs:
2626
run: npm run build
2727
env:
2828
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29+
30+
update-vendored-specs:
31+
needs: test-deploy
32+
if: failure()
33+
uses: ./.github/workflows/update-vendored-specs.yaml

.github/workflows/update-vendored-specs.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ name: Update vendored OpenAPI specs
22

33
on:
44
workflow_dispatch:
5+
workflow_call:
56

67
concurrency:
78
group: update-vendored-specs
@@ -26,7 +27,7 @@ jobs:
2627
- name: Set up git identity
2728
run: |
2829
git config user.name "github-actions[bot]"
29-
git config user.email "github-actions[bot]@users.noreply.github.com"
30+
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
3031

3132
- name: Install dependencies
3233
run: npm ci

0 commit comments

Comments
 (0)