Skip to content

Commit 6e3b66e

Browse files
authored
CI: Only run GitHub workflows for ampproject repo (#1339)
- Restrict CI workflow to ampproject/amp-toolbox repository - Cleanup trailing whitespace
1 parent 0826825 commit 6e3b66e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/CI.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on: [pull_request, push]
55
jobs:
66
test:
77
name: Test on node ${{ matrix.node }} and ${{ matrix.os }}
8+
if: github.repository == 'ampproject/amp-toolbox'
89

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

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

1617
steps:
17-
- uses: actions/checkout@v2
18+
- uses: actions/checkout@v2
1819
- name: Use node ${{ matrix.node }}
1920
uses: actions/setup-node@v2
2021
with:

0 commit comments

Comments
 (0)