Skip to content

Commit 77a7e2a

Browse files
committed
build: Test registry dispatch workflow
1 parent 1bffbdd commit 77a7e2a

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Test Registry Dispatch
2+
3+
# TEMPORARY
4+
on:
5+
push:
6+
branches: [ish/trigger-registry-update]
7+
8+
permissions: {}
9+
10+
jobs:
11+
test-dispatch:
12+
runs-on: ubuntu-latest
13+
permissions: {}
14+
steps:
15+
- name: Generate token scoped to the registry repo
16+
uses: actions/create-github-app-token@v3
17+
id: registry-token
18+
with:
19+
app-id: ${{ secrets.REGISTRY_UPDATER_APP_ID }}
20+
private-key: ${{ secrets.REGISTRY_UPDATER_APP_PRIVATE_KEY }}
21+
owner: ${{ github.repository_owner }}
22+
repositories: registry
23+
24+
- name: Dispatch registry version update
25+
env:
26+
GH_TOKEN: ${{ steps.registry-token.outputs.token }}
27+
run: |
28+
gh workflow run update-versions.yml \
29+
--repo ${{ github.repository_owner }}/registry \
30+
--ref main \
31+
-f apply=false \
32+
-f agents=codex-acp

0 commit comments

Comments
 (0)