-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This adds a github workflow dispatch event to tell the registry API to update.
- Loading branch information
1 parent
5351374
commit fdfbffd
Showing
2 changed files
with
32 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# runs if /packages/registry/** is updated and the release workflow completes successfully | ||
name: Release Package | ||
|
||
on: | ||
workflow_run: | ||
workflows: ["Release"] | ||
types: | ||
- completed | ||
push: | ||
paths: | ||
- 'packages/registry/**' | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
if: github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success' | ||
|
||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Delay for 90 seconds to allow NPM package to propagate | ||
run: sleep 90 | ||
|
||
- name: Update registry API | ||
uses: peter-evans/repository-dispatch@v1 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
event-type: workflow_completed | ||
client-payload: '{"workflow_run_id": "${{ github.event.workflow_run.id }}"}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters