Skip to content

Commit 1a0453a

Browse files
committed
GitHub: notify frontend about dataset update
1 parent cbd15d8 commit 1a0453a

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

.github/workflows/json_generation.yml

+17-2
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,30 @@ jobs:
2727
. venv/bin/activate
2828
pip3 install -r requirements.txt
2929
- name: Validate YAMLs
30-
run: |
30+
run: |
3131
. venv/bin/activate
3232
make -j$(nproc) validate
3333
- name: Generate JSONs
34-
run: |
34+
run: |
3535
. venv/bin/activate
3636
make O=./build -j$(nproc)
3737
- name: Archive JSONs
3838
uses: actions/upload-artifact@v4
3939
with:
4040
name: frontend-dataset
4141
path: build
42+
notify_frontend:
43+
runs-on: ubuntu-latest
44+
needs: generation
45+
permissions:
46+
actions: write
47+
steps:
48+
- name: Notify
49+
run: |
50+
curl -L \
51+
-X POST \
52+
-H "Accept: application/vnd.github+json" \
53+
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
54+
-H "X-GitHub-Api-Version: 2022-11-28" \
55+
https://api.github.com/repos/openeuler-riscv/imagepub-web/actions/workflows/build.yml/dispatches \
56+
-d '{"ref":"main"}'

0 commit comments

Comments
 (0)