Skip to content

Commit

Permalink
CI: Only run GitHub workflows for ampproject repo (ampproject#1339)
Browse files Browse the repository at this point in the history
- Restrict CI workflow to ampproject/amp-toolbox repository
- Cleanup trailing whitespace
  • Loading branch information
mdmower authored Oct 10, 2022
1 parent 0826825 commit 6e3b66e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on: [pull_request, push]
jobs:
test:
name: Test on node ${{ matrix.node }} and ${{ matrix.os }}
if: github.repository == 'ampproject/amp-toolbox'

runs-on: ${{ matrix.os }}

Expand All @@ -14,7 +15,7 @@ jobs:
os: [ubuntu-latest, macOS-latest, windows-latest]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v2
- name: Use node ${{ matrix.node }}
uses: actions/setup-node@v2
with:
Expand Down

0 comments on commit 6e3b66e

Please sign in to comment.