Skip to content

Commit c1ac1a6

Browse files
m-messerclaude
andcommitted
Replace peter-evans/repository-dispatch with gh api calls
Fine-grained PATs are incompatible with the action. Use gh api directly with SHIMMY_DEPLOY_TOKEN for both release and trigger-build dispatches. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent f40252f commit c1ac1a6

2 files changed

Lines changed: 13 additions & 11 deletions

File tree

.github/workflows/build.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,9 @@ jobs:
188188
id-token: write
189189
steps:
190190
- name: Repository Dispatch
191-
uses: peter-evans/repository-dispatch@v3
192-
with:
193-
token: ${{ secrets.EVALUATION_FUNCTION_BASE_BUILD_TRIGGER_TOKEN }}
194-
repository: ${{ github.repository_owner }}/evaluation-function-base
195-
event-type: trigger-build
191+
env:
192+
GH_TOKEN: ${{ secrets.SHIMMY_DEPLOY_TOKEN }}
193+
run: |
194+
gh api repos/${{ github.repository_owner }}/evaluation-function-base/dispatches \
195+
--method POST \
196+
-f event_type=trigger-build

.github/workflows/release.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,10 @@ jobs:
7070
7171
- name: Trigger evaluation-function-base release
7272
if: steps.idempotency.outputs.skip == 'false'
73-
uses: peter-evans/repository-dispatch@v3
74-
with:
75-
token: ${{ secrets.SHIMMY_DEPLOY_TOKEN }}
76-
repository: ${{ github.repository_owner }}/evaluation-function-base
77-
event-type: release
78-
client-payload: '{"shimmy_version": "${{ steps.version.outputs.version }}"}'
73+
env:
74+
GH_TOKEN: ${{ secrets.SHIMMY_DEPLOY_TOKEN }}
75+
run: |
76+
gh api repos/${{ github.repository_owner }}/evaluation-function-base/dispatches \
77+
--method POST \
78+
-f event_type=release \
79+
-F client_payload='{"shimmy_version": "${{ steps.version.outputs.version }}"}'

0 commit comments

Comments
 (0)