Skip to content

Commit b480f07

Browse files
committed
build: Trigger registry update after publishing new version
1 parent 921d466 commit b480f07

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

.github/workflows/publish.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,3 +67,27 @@ jobs:
6767
with:
6868
token: ${{ steps.generate-token.outputs.token }}
6969
generate_release_notes: true
70+
71+
trigger-registry-update:
72+
needs: create-release
73+
runs-on: ubuntu-latest
74+
permissions: {}
75+
steps:
76+
- name: Generate token scoped to the registry repo
77+
uses: actions/create-github-app-token@v3
78+
id: registry-token
79+
with:
80+
app-id: ${{ secrets.REGISTRY_UPDATER_APP_ID }}
81+
private-key: ${{ secrets.REGISTRY_UPDATER_APP_PRIVATE_KEY }}
82+
owner: ${{ github.repository_owner }}
83+
repositories: registry
84+
85+
- name: Dispatch registry version update
86+
env:
87+
GH_TOKEN: ${{ steps.registry-token.outputs.token }}
88+
run: |
89+
gh workflow run update-versions.yml \
90+
--repo ${{ github.repository_owner }}/registry \
91+
--ref main \
92+
-f apply=true \
93+
-f agents=codex-acp

0 commit comments

Comments
 (0)