Skip to content

Commit ab3efb4

Browse files
authored
build from branch (#4278)
* build from branch * Update so PR's from forks can build, but not push
1 parent 9883691 commit ab3efb4

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

.github/workflows/docs.yaml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ name: Docs
22

33
on:
44
pull_request:
5-
branches:
6-
- 'main'
75
paths:
86
- 'website/**'
97
push:
@@ -20,13 +18,13 @@ jobs:
2018
build:
2119
permissions:
2220
statuses: write
23-
if: "${{ github.event_name != 'push' && github.repository_owner == 'weaveworks' && !github.event.pull_request.head.repo.fork }}"
21+
if: "${{ github.event_name != 'push' }}"
2422
runs-on: ubuntu-latest
2523
defaults:
2624
run:
2725
working-directory: website
2826
steps:
29-
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
27+
- uses: actions/checkout@v4
3028
- name: Setup Pages
3129
uses: actions/configure-pages@v5
3230
- uses: actions/setup-node@v4
@@ -50,14 +48,13 @@ jobs:
5048
path: website/build
5149
retention-days: 365
5250

53-
# Deployment job
5451
deploy:
5552
permissions:
5653
statuses: write
5754
pull-requests: write
5855
id-token: write
5956
pages: write
60-
if: "${{ github.event_name != 'push' && github.repository_owner == 'weaveworks' && !github.event.pull_request.head.repo.fork }}"
57+
if: "${{ github.repository_owner == 'weaveworks' && !github.event.pull_request.head.repo.fork }}"
6158
runs-on: ubuntu-latest
6259
defaults:
6360
run:

0 commit comments

Comments
 (0)