Skip to content
This repository was archived by the owner on Apr 30, 2024. It is now read-only.

Commit 1bf1494

Browse files
committed
Fix the "Repository Dispatch" script
1 parent 80bfdfa commit 1bf1494

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

.github/workflows/cd-vocabulary.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,14 @@ jobs:
3232
env:
3333
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
3434

35+
- name: Repository Dispatch
36+
uses: peter-evans/repository-dispatch@v1
37+
with:
38+
token: ${{ secrets.GITHUB_TOKEN }}
39+
repository: creativecommons/vocabulary
40+
event-type: vocabulary-built
41+
client-payload: '{"ref": "${{ github.ref }}", "sha": "${{ github.sha }}"}'
42+
3543
deploy_gh:
3644
defaults:
3745
run:
@@ -54,11 +62,3 @@ jobs:
5462
run: bash deploy.sh
5563
env:
5664
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
57-
58-
- name: Repository Dispatch
59-
uses: peter-evans/repository-dispatch@v1
60-
with:
61-
token: ${{ secrets.REPO_ACCESS_TOKEN }}
62-
repository: username/my-repo
63-
event-type: vocabulary-built
64-
client-payload: '{"ref": "${{ github.ref }}", "sha": "${{ github.sha }}"}'

0 commit comments

Comments
 (0)