From 6e3b66ea086dc93caa7d98929006a1b658bfe60a Mon Sep 17 00:00:00 2001 From: Matt Mower Date: Mon, 10 Oct 2022 05:10:58 -0700 Subject: [PATCH] CI: Only run GitHub workflows for ampproject repo (#1339) - Restrict CI workflow to ampproject/amp-toolbox repository - Cleanup trailing whitespace --- .github/workflows/CI.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 562383c87..fade9afde 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -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 }} @@ -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: