Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Use v4 version of PullPreview to avoid too many workflow runs

Cyril Rohr86e1e22a3054
diff --git a/.github/workflows/pullpreview.yml b/.github/workflows/pullpreview.yml
index d1243b24e20..6f93a8fa17c 100644
--- a/.github/workflows/pullpreview.yml
+++ b/.github/workflows/pullpreview.yml
@@ -1,12 +1,15 @@
-name: PullPreview
+name: pullpreview
+
on:
push:
+ branches:
+ - dev
pull_request:
- types: [labeled, unlabeled, closed]
+ types: [labeled, unlabeled, synchronize, closed, reopened]
jobs:
deploy:
- name: Deploy
+ if: github.event.label.name == 'pullpreview' || contains(github.event.pull_request.labels.*.name, 'pullpreview')
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
@@ -19,7 +22,7 @@ jobs:
if: contains(github.ref, 'bim/') || contains(github.head_ref, 'bim/')
run: |
echo "OPENPROJECT_EDITION=bim" >> .env.pullpreview
- - uses: pullpreview/action@master
+ - uses: pullpreview/action@v4
with:
admins: crohr,HDinger,machisuji,oliverguenther,ulferts,wielinde
always_on: dev