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

Add trigger for openproject-flavours

Cyril Rohr1db90c9324f7
diff --git a/.github/workflows/continuous-delivery.yml b/.github/workflows/continuous-delivery.yml
index 06dc824b039..4e26d003a99 100644
--- a/.github/workflows/continuous-delivery.yml
+++ b/.github/workflows/continuous-delivery.yml
@@ -14,13 +14,24 @@ jobs:
if: github.repository == 'opf/openproject'
runs-on: ubuntu-latest
steps:
- - name: Trigger downstream workflow
+ - name: Trigger SaaS workflow
env:
TOKEN: ${{ secrets.OPENPROJECT_CI_TOKEN }}
- SAAS_CD_WORKFLOW_ID: continuous-delivery-saas.yml
- SAAS_REPOSITORY: opf/saas-openproject
+ REPOSITORY: opf/saas-openproject
+ WORKFLOW_ID: continuous-delivery-saas.yml
run: |
curl -i --fail -H"authorization: Bearer $TOKEN" \
-XPOST -H"Accept: application/vnd.github.v3+json" \
- https://api.github.com/repos/$SAAS_REPOSITORY/actions/workflows/$SAAS_CD_WORKFLOW_ID/dispatches \
+ https://api.github.com/repos/$REPOSITORY/actions/workflows/$WORKFLOW_ID/dispatches \
-d '{"ref": "${{ github.ref }}"}'
+
+ - name: Trigger Flavours workflow
+ env:
+ TOKEN: ${{ secrets.OPENPROJECT_CI_TOKEN }}
+ REPOSITORY: opf/openproject-flavours
+ WORKFLOW_ID: ci.yml
+ run: |
+ curl -i --fail -H"authorization: Bearer $TOKEN" \
+ -XPOST -H"Accept: application/vnd.github.v3+json" \
+ https://api.github.com/repos/$REPOSITORY/actions/workflows/$WORKFLOW_ID/dispatches \
+ -d '{"ref": "${{ github.ref }}"}'
\ No newline at end of file