devops: avoid running publish on external contrib (#3257)
Everytime I sync my fork to upstream, I get failure notifications:
```
Run failed for master (3edfb2a)
Repository: rwoll/playwright
Workflow: devrelease
Duration: 10 minutes and 34.0 seconds
Finished: 2020-07-31 18:30:13 UTC
```
Since forks should never have the necessary secrets to publish
the npm and Docker packages, we limit the running of these jobs to avoid
noisy failures for contributors.
This commit is contained in:
parent
ba9030e6be
commit
cbd33f9601
1
.github/workflows/publish_canary_docker.yml
vendored
1
.github/workflows/publish_canary_docker.yml
vendored
|
|
@ -13,6 +13,7 @@ jobs:
|
|||
publish-canary-docker:
|
||||
name: "publish to DockerHub"
|
||||
runs-on: ubuntu-18.04
|
||||
if: github.repository == 'microsoft/playwright'
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v1
|
||||
|
|
|
|||
1
.github/workflows/publish_canary_npm.yml
vendored
1
.github/workflows/publish_canary_npm.yml
vendored
|
|
@ -13,6 +13,7 @@ jobs:
|
|||
publish-canary-npm:
|
||||
name: "publish to NPM"
|
||||
runs-on: ubuntu-18.04
|
||||
if: github.repository == 'microsoft/playwright'
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v1
|
||||
|
|
|
|||
2
.github/workflows/publish_release.yml
vendored
2
.github/workflows/publish_release.yml
vendored
|
|
@ -11,6 +11,7 @@ jobs:
|
|||
publish-npm-release:
|
||||
name: "publish to NPM"
|
||||
runs-on: ubuntu-18.04
|
||||
if: github.repository == 'microsoft/playwright'
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v1
|
||||
|
|
@ -27,6 +28,7 @@ jobs:
|
|||
publish-docker-release:
|
||||
name: "publish to DockerHub"
|
||||
runs-on: ubuntu-18.04
|
||||
if: github.repository == 'microsoft/playwright'
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v1
|
||||
|
|
|
|||
Loading…
Reference in a new issue