Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #48684: stop Actions from running (and failing) on forks #48713

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ on:
jobs:
build-and-publish:
runs-on: ubuntu-20.04
if: github.repository == 'web-platform-tests/wpt'
steps:
- name: Set up Python
uses: actions/setup-python@v5
Expand All @@ -31,8 +32,6 @@ 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'
run: ./tools/ci/website_build.sh
env:
DEPLOY_TOKEN: ${{ secrets.DEPLOY_TOKEN }}
3 changes: 1 addition & 2 deletions .github/workflows/epochs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,13 @@ on:
jobs:
update:
runs-on: ubuntu-20.04
if: github.repository == 'web-platform-tests/wpt'
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- 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 }}
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/interfaces.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,13 @@ on:
jobs:
update:
runs-on: ubuntu-20.04
if: github.repository == 'web-platform-tests/wpt'
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Run interfaces_update.sh
run: ./tools/ci/interfaces_update.sh
- name: Create pull request
# Use a conditional step instead of a conditional job to work around #20700.
if: github.repository == 'web-platform-tests/wpt'
uses: peter-evans/create-pull-request@v6
with:
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
jobs:
build-and-tag:
runs-on: ubuntu-20.04
if: github.repository == 'web-platform-tests/wpt'
steps:
- name: Set up Python
uses: actions/setup-python@v5
Expand All @@ -23,8 +24,6 @@ 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 }}
5 changes: 1 addition & 4 deletions .github/workflows/regen_certs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
jobs:
update:
runs-on: ubuntu-20.04
if: github.repository == 'web-platform-tests/wpt'
steps:
- name: Set up Python
uses: actions/setup-python@v5
Expand All @@ -16,14 +17,10 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Regenerate certs
# Use a conditional step instead of a conditional job to work around #20700.
if: github.repository == 'web-platform-tests/wpt'
run: |
python wpt make-hosts-file | sudo tee -a /etc/hosts
python wpt regen-certs --force
- name: Commit and create pull request
# Use a conditional step instead of a conditional job to work around #20700.
if: github.repository == 'web-platform-tests/wpt'
uses: peter-evans/create-pull-request@v6
with:
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down