Skip to content

Commit

Permalink
Bug 1603623 [wpt PR 20758] - GitHub Actions: Work around #20700, a=te…
Browse files Browse the repository at this point in the history
…stonly

Automatic update from web-platform-tests
GitHub Actions: Work around #20700 (#20758)

Make sure workflows always contain at least one job even on a fork. Only
skip the steps that require secrets instead of the whole jobs.
--

wpt-commits: 5b2b39346928ecd59e558ef409520dd85a209bea
wpt-pr: 20758

UltraBlame original commit: 314f4676fb056eaef449492c95139951de82bae6
  • Loading branch information
marco-c committed Dec 20, 2019
1 parent 3affed0 commit 8434ca3
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: pr-preview-detect
# This workflow triggers on deployment, which can never happen on a fork.
on: deployment
jobs:
detect-deployment:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ jobs:
with:
fetch-depth: 50
- name: Run website_build.sh
# Use a conditional step instead of a conditional job to work around #20700.
if: github.repository == 'web-platform-tests/wpt'
uses: ./tools/docker/documentation
env:
DEPLOY_TOKEN: ${{ secrets.DEPLOY_TOKEN }}
Expand Down
4 changes: 2 additions & 2 deletions testing/web-platform/tests/.github/workflows/epochs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ on:
- cron: 10 */3 * * *
jobs:
update:
# Do not run this job on forks.
if: github.repository == "web-platform-tests/wpt"
runs-on: ubuntu-18.04
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Run epochs_update.sh
# Use a conditional step instead of a conditional job to work around #20700.
if: github.repository == 'web-platform-tests/wpt'
run: ./tools/ci/epochs_update.sh
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 2 additions & 0 deletions testing/web-platform/tests/.github/workflows/manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ jobs:
sudo apt-get -qqy install zstd
pip install -r tools/wpt/requirements.txt
- name: Run manifest_build.py
# Use a conditional step instead of a conditional job to work around #20700.
if: github.repository == 'web-platform-tests/wpt'
run: tools/docker/retry.py --delay 60 python tools/ci/manifest_build.py
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 8434ca3

Please sign in to comment.