Skip to content

Commit a8d29b8

Browse files
authored
ci: Allow build-web to run outside of upstream (PRQL#4635)
1 parent ea70b49 commit a8d29b8

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

.github/workflows/build-web.yaml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,6 @@ jobs:
1414
build-web:
1515
runs-on: ubuntu-latest
1616

17-
# Skip running workflow on forks. Checking the repository owner still allows
18-
# this to be run on PRs, and then below we disable it from attempting to
19-
# publish.
20-
if: github.repository_owner == 'prql'
21-
2217
steps:
2318
- name: 📂 Checkout code
2419
uses: actions/checkout@v4
@@ -71,8 +66,6 @@ jobs:
7166
build-codemirror-demo:
7267
runs-on: ubuntu-latest
7368

74-
if: github.repository_owner == 'prql'
75-
7669
steps:
7770
- name: 📂 Checkout code
7871
uses: actions/checkout@v4

.github/workflows/publish-web.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,10 @@ jobs:
2424
needs: build-web
2525
runs-on: ubuntu-latest
2626

27-
# Don't attempt to publish if on a fork, including a PR.
28-
if: ${{ !github.event.pull_request.head.repo.fork }}
27+
# Don't attempt to publish if on a fork or on a PR running on upstream.
28+
if:
29+
${{ github.repository_owner == 'prql' &&
30+
!github.event.pull_request.head.repo.fork }}
2931

3032
permissions:
3133
pages: write

0 commit comments

Comments
 (0)