Skip to content

GitHub: notify frontend about dataset update #19

GitHub: notify frontend about dataset update

GitHub: notify frontend about dataset update #19

Workflow file for this run

name: Frontend JSON Generation
on:
push:
pull_request:
jobs:
generation:
runs-on: ubuntu-latest
container:
image: debian:stable-slim
steps:
- name: Setup dependencies
run: |
apt-get update && \
apt-get install --no-install-recommends -y \
python3 \
python3-venv \
python3-pip \
make \
rsync\
&& \
apt-get clean
- name: Checkout
uses: actions/checkout@v4
- name: Install python requirements
run: |
python3 -m venv venv
. venv/bin/activate
pip3 install -r requirements.txt
- name: Validate YAMLs
run: |
. venv/bin/activate
make -j$(nproc) validate
- name: Generate JSONs
run: |
. venv/bin/activate
make O=./build -j$(nproc)
- name: Archive JSONs
uses: actions/upload-artifact@v4
with:
name: frontend-dataset
path: build
notify_frontend:
runs-on: ubuntu-latest
needs: generation
permissions:
actions: write
steps:
- name: Notify
run: |

Check failure on line 49 in .github/workflows/json_generation.yml

View workflow run for this annotation

GitHub Actions / Frontend JSON Generation

Invalid workflow file

The workflow is not valid. .github/workflows/json_generation.yml (Line: 49, Col: 14): Unrecognized named-value: 'secret'. Located at position 1 within expression: secret.github_token
curl -L \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ secret.github_token }}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/openeuler-riscv/imagepub-web/actions/workflows/build.yml/dispatches \
-d '{"ref":"main"}'