CI: fix running on PRs

(for real this time...)
This commit is contained in:
Louis Gesbert 2024-01-25 18:58:51 +01:00
parent a0cdc0e663
commit fd127508db

View File

@ -142,7 +142,7 @@ jobs:
binaries:
name: Build static binaries
runs-on: self-hosted
if: ${{ github.event_name != 'pull_request' }}
if: ${{ github.event_name != 'pull_request_target' }}
steps:
- name: Checkout code
uses: actions/checkout@v3
@ -166,7 +166,7 @@ jobs:
name: Publish static content to github-pages
needs: [ examples, binaries, tests ]
# Doesn't really depend on tests, but we don't want to publish if they fail
if: ${{ github.event_name != 'pull_request' && github.ref == 'refs/heads/master' }}
if: ${{ github.event_name != 'pull_request_target' && github.ref == 'refs/heads/master' }}
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read