Skip to content

add ci for sites

add ci for sites #1

Workflow file for this run

name: Sites
on:
push:
pull_request:
workflow_dispatch:
jobs:
generate:

Check failure on line 10 in .github/workflows/sites.yml

View workflow run for this annotation

GitHub Actions / Sites

Invalid workflow file

The workflow is not valid. .github/workflows/sites.yml (Line: 10, Col: 3): The workflow must contain at least one job with no dependencies.
if: ${{ github.ref == 'refs/heads/main' && github.event_name != 'pull_request' }}
runs-on: ubuntu-latest
name: Generate HTML
needs: [test]
steps:
- name: Generate HTML
env:
PERSONAL_ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
run: |
curl -X POST \
-H "Authorization: token $PERSONAL_ACCESS_TOKEN" \
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/repos/szabgab/he.perlmaven.com/actions/workflows/ci.yml/dispatches \
-d '{"ref":"main"}' | tee out.txt
if [ -s out.txt ]
then
exit 1
else
exit 0
fi