-
Notifications
You must be signed in to change notification settings - Fork 48
32 lines (27 loc) · 922 Bytes
/
notify.yml
File metadata and controls
32 lines (27 loc) · 922 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# runs if /packages/registry/** is updated and the release workflow completes successfully
name: Update Registry Submodules
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@v4
with:
fetch-depth: 0 # Fetch the full history instead of a shallow clone
- 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 }}"}'