Skip to content

Commit

Permalink
add ci for sites
Browse files Browse the repository at this point in the history
  • Loading branch information
szabgab committed Nov 9, 2024
1 parent ea3a85b commit e2fcf30
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/sites.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Sites

on:
push:
pull_request:
workflow_dispatch:

jobs:

generate:
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

0 comments on commit e2fcf30

Please sign in to comment.