]> git.ipfire.org Git - thirdparty/vuejs/router.git/commitdiff
ci: avoid CI failures for forks (#2497)
authorskirtle <65301168+skirtles-code@users.noreply.github.com>
Wed, 14 May 2025 09:49:47 +0000 (10:49 +0100)
committerGitHub <noreply@github.com>
Wed, 14 May 2025 09:49:47 +0000 (11:49 +0200)
.github/workflows/pkg.pr.new.yml
.github/workflows/test.yml

index 271a46e081c919faa5e248f1513c50a9ab15d794..47abd602694389b32b68a5747791b72bcb557f54 100644 (file)
@@ -18,6 +18,7 @@ on:
 
 jobs:
   build:
+    if: github.repository == 'vuejs/router'
     runs-on: ubuntu-latest
 
     steps:
index e960d8a5756523a8824360cd7cf5a1cb38f3be39..5bbdc52fc8ecbd4639000682b69696be0d92ce36 100644 (file)
@@ -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 }}