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

Switch to workflow_dispatch event for Core/CD

Cyril Rohr31e85158813a
diff --git a/.github/workflows/continuous-delivery.yml b/.github/workflows/continuous-delivery.yml
index 0259cbf0f8d..58364b18ada 100644
--- a/.github/workflows/continuous-delivery.yml
+++ b/.github/workflows/continuous-delivery.yml
@@ -1,18 +1,21 @@
-name: CD
+name: Core/CD
on:
push:
branches:
- dev
- release/*
jobs:
- trigger_downstream_merge:
+ trigger_downstream_workflow:
if: github.repository == 'opf/openproject'
runs-on: ubuntu-latest
steps:
- - name: Trigger downstream merge
- uses: peter-evans/repository-dispatch@v1
- with:
- repository: opf/saas-openproject
- token: ${{ secrets.GH_OAUTH_TOKEN }}
- event-type: trigger_downstream_merge
- client-payload: '{"ref": "${{ github.ref }}", "sha": "${{ github.sha }}", "repository": "${{ github.repository }}"}'
+ - name: Trigger downstream workflow
+ env:
+ TOKEN: ${{ secrets.OPENPROJECT_CI_TOKEN }}
+ SAAS_CD_WORKFLOW_ID: 2625552
+ SAAS_REPOSITORY: opf/saas-openproject
+ run: |
+ curl -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 \
+ -d '{"ref": "${{ github.ref }}"}'