Skip running jobs on fork develop where they lack secrets (#8837)

* Skip running jobs on fork `develop` where they lack secrets

* Fix contexts
This commit is contained in:
Michael Telatynski 2022-06-14 11:37:07 +01:00 committed by GitHub
parent 2c751a4fa6
commit 79195dea8b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 4 deletions

View file

@ -122,12 +122,13 @@ jobs:
runs-on: ubuntu-latest
if: |
github.event.workflow_run.event != 'pull_request' &&
github.event.workflow_run.head_branch == 'develop'
github.event.workflow_run.head_branch == 'develop' &&
github.event.workflow_run.head_repository.full_name == github.repository
permissions:
contents: write
steps:
- uses: actions/checkout@v2
- name: Download benchmark result
uses: actions/download-artifact@v3
with: