name: Core/CD on: push: branches: - dev - release/* jobs: trigger_downstream_workflow: if: github.repository == 'opf/openproject' runs-on: ubuntu-latest steps: - 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 }}"}'