Skip running jobs on fork `develop` where they lack secrets (#8837)
* Skip running jobs on fork `develop` where they lack secrets * Fix contextspull/28217/head
parent
2c751a4fa6
commit
79195dea8b
|
@ -122,12 +122,13 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: |
|
if: |
|
||||||
github.event.workflow_run.event != 'pull_request' &&
|
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:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Download benchmark result
|
- name: Download benchmark result
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
|
|
|
@ -4,7 +4,7 @@ on:
|
||||||
# won't pull in the right versions of other repos, so they're only enabled
|
# won't pull in the right versions of other repos, so they're only enabled
|
||||||
# on develop.
|
# on develop.
|
||||||
push:
|
push:
|
||||||
branches: [ develop ]
|
branches: [ develop, master ]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ develop ]
|
branches: [ develop ]
|
||||||
repository_dispatch:
|
repository_dispatch:
|
||||||
|
@ -41,7 +41,7 @@ jobs:
|
||||||
retention-days: 14
|
retention-days: 14
|
||||||
|
|
||||||
- name: Store benchmark result
|
- name: Store benchmark result
|
||||||
if: github.ref == 'refs/heads/develop'
|
if: github.ref == 'refs/heads/develop' && github.repository == 'matrix-org/matrix-react-sdk'
|
||||||
uses: matrix-org/github-action-benchmark@jsperfentry-1
|
uses: matrix-org/github-action-benchmark@jsperfentry-1
|
||||||
with:
|
with:
|
||||||
tool: 'jsperformanceentry'
|
tool: 'jsperformanceentry'
|
||||||
|
|
|
@ -8,6 +8,8 @@ jobs:
|
||||||
notify-element-web:
|
notify-element-web:
|
||||||
name: "Notify Element Web"
|
name: "Notify Element Web"
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
# Only respect triggers from our develop branch, ignore that of forks
|
||||||
|
if: github.repository == 'matrix-org/matrix-react-sdk'
|
||||||
steps:
|
steps:
|
||||||
- name: Notify element-web repo that a new SDK build is on develop
|
- name: Notify element-web repo that a new SDK build is on develop
|
||||||
uses: peter-evans/repository-dispatch@v1
|
uses: peter-evans/repository-dispatch@v1
|
||||||
|
|
Loading…
Reference in New Issue