From: skirtle <65301168+skirtles-code@users.noreply.github.com> Date: Wed, 14 May 2025 09:49:47 +0000 (+0100) Subject: ci: avoid CI failures for forks (#2497) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=30f8674ac4f3ee69a866bfae2280acd2a4db2daf;p=thirdparty%2Fvuejs%2Frouter.git ci: avoid CI failures for forks (#2497) --- diff --git a/.github/workflows/pkg.pr.new.yml b/.github/workflows/pkg.pr.new.yml index 271a46e0..47abd602 100644 --- a/.github/workflows/pkg.pr.new.yml +++ b/.github/workflows/pkg.pr.new.yml @@ -18,6 +18,7 @@ on: jobs: build: + if: github.repository == 'vuejs/router' runs-on: ubuntu-latest steps: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e960d8a5..5bbdc52f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -28,7 +28,7 @@ jobs: - name: 'BrowserStack Env Setup' uses: 'browserstack/github-actions/setup-env@master' # forks do not have access to secrets so just skip this - if: ${{ !github.event.pull_request.head.repo.fork }} + if: ${{ github.repository == 'vuejs/router' && !github.event.pull_request.head.repo.fork }} with: username: ${{ secrets.BROWSERSTACK_USERNAME }} access-key: ${{ secrets.BROWSERSTACK_ACCESS_KEY }}