Skip to content

Commit 9117404

Browse files
authored
Remove push trigger from pullpreview workflows and examples (#124)
* remove push trigger from pullpreview workflows and examples * chore(dist): update bundled pullpreview binary
1 parent d2d7f46 commit 9117404

File tree

4 files changed

+6
-16
lines changed

4 files changed

+6
-16
lines changed

.github/workflows/pullpreview-multi-env.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
jobs:
99
deploy_env1:
1010
runs-on: ubuntu-slim
11-
if: github.event_name == 'schedule' || github.event_name == 'push' || github.event.label.name == 'pullpreview-multi-env' || contains(github.event.pull_request.labels.*.name, 'pullpreview-multi-env')
11+
if: github.event_name == 'schedule' || github.event.label.name == 'pullpreview-multi-env' || contains(github.event.pull_request.labels.*.name, 'pullpreview-multi-env')
1212
timeout-minutes: 30
1313
steps:
1414
- uses: actions/checkout@v5
@@ -26,7 +26,7 @@ jobs:
2626

2727
deploy_env2:
2828
runs-on: ubuntu-slim
29-
if: github.event_name == 'schedule' || github.event_name == 'push' || github.event.label.name == 'pullpreview-multi-env' || contains(github.event.pull_request.labels.*.name, 'pullpreview-multi-env')
29+
if: github.event_name == 'schedule' || github.event.label.name == 'pullpreview-multi-env' || contains(github.event.pull_request.labels.*.name, 'pullpreview-multi-env')
3030
timeout-minutes: 30
3131
steps:
3232
- uses: actions/checkout@v5

.github/workflows/pullpreview.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@ name: pullpreview
22
on:
33
schedule:
44
- cron: "30 */4 * * *"
5-
push:
6-
branches:
7-
- master
8-
- v6
95
pull_request:
106
types: [labeled, unlabeled, synchronize, closed, reopened, opened]
117

@@ -18,7 +14,7 @@ permissions:
1814
jobs:
1915
deploy_smoke_1:
2016
runs-on: ubuntu-slim
21-
if: github.event_name == 'schedule' || github.event_name == 'push' || github.event.label.name == 'pullpreview' || contains(github.event.pull_request.labels.*.name, 'pullpreview')
17+
if: github.event_name == 'schedule' || github.event.label.name == 'pullpreview' || contains(github.event.pull_request.labels.*.name, 'pullpreview')
2218
outputs:
2319
live: ${{ steps.pullpreview.outputs.live }}
2420
timeout-minutes: 35
@@ -142,7 +138,7 @@ jobs:
142138
143139
deploy_smoke_hetzner:
144140
runs-on: ubuntu-slim
145-
if: github.event_name == 'schedule' || github.event_name == 'push' || github.event.label.name == 'pullpreview' || contains(github.event.pull_request.labels.*.name, 'pullpreview')
141+
if: github.event_name == 'schedule' || github.event.label.name == 'pullpreview' || contains(github.event.pull_request.labels.*.name, 'pullpreview')
146142
timeout-minutes: 35
147143
steps:
148144
- uses: actions/checkout@v6

README.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -155,15 +155,12 @@ on:
155155
# the schedule is optional, but helps to make sure no dangling resources are left when GitHub Action does not behave properly
156156
schedule:
157157
- cron: "30 2 * * *"
158-
push:
159-
branches:
160-
- main
161158
pull_request:
162159
types: [labeled, unlabeled, synchronize, closed, reopened]
163160

164161
jobs:
165162
deploy:
166-
if: github.event_name == 'schedule' || github.event_name == 'push' || github.event.label.name == 'pullpreview' || contains(github.event.pull_request.labels.*.name, 'pullpreview')
163+
if: github.event_name == 'schedule' || github.event.label.name == 'pullpreview' || contains(github.event.pull_request.labels.*.name, 'pullpreview')
167164
runs-on: ubuntu-latest
168165
timeout-minutes: 30
169166
steps:
@@ -198,16 +195,13 @@ name: PullPreview
198195
on:
199196
schedule:
200197
- cron: "30 */4 * * *"
201-
push:
202-
branches:
203-
- master
204198
pull_request:
205199
types: [labeled, unlabeled, synchronize, closed, reopened, opened]
206200

207201
jobs:
208202
deploy_hetzner:
209203
runs-on: ubuntu-slim
210-
if: github.event_name == 'schedule' || github.event_name == 'push' || github.event.label.name == 'pullpreview' || contains(github.event.pull_request.labels.*.name, 'pullpreview')
204+
if: github.event_name == 'schedule' || github.event.label.name == 'pullpreview' || contains(github.event.pull_request.labels.*.name, 'pullpreview')
211205
timeout-minutes: 30
212206
steps:
213207
- uses: actions/checkout@v5

dist/pullpreview-linux-amd64

-40 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)