Skip to content

Commit 30f8674

Browse files
ci: avoid CI failures for forks (#2497)
1 parent b8c833f commit 30f8674

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.github/workflows/pkg.pr.new.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ on:
1818

1919
jobs:
2020
build:
21+
if: github.repository == 'vuejs/router'
2122
runs-on: ubuntu-latest
2223

2324
steps:

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
- name: 'BrowserStack Env Setup'
2929
uses: 'browserstack/github-actions/setup-env@master'
3030
# forks do not have access to secrets so just skip this
31-
if: ${{ !github.event.pull_request.head.repo.fork }}
31+
if: ${{ github.repository == 'vuejs/router' && !github.event.pull_request.head.repo.fork }}
3232
with:
3333
username: ${{ secrets.BROWSERSTACK_USERNAME }}
3434
access-key: ${{ secrets.BROWSERSTACK_ACCESS_KEY }}

0 commit comments

Comments
 (0)