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:
parent
2c751a4fa6
commit
79195dea8b
3 changed files with 7 additions and 4 deletions
5
.github/workflows/cypress.yaml
vendored
5
.github/workflows/cypress.yaml
vendored
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue