1 name: Trigger Staging Deployment
2
3 on:
4 workflow_run:
5 workflows: [Trigger Release and Publish]
6 types:
7 - completed
8
9 jobs:
10 deploy:
11 if: github.event.workflow_run.event != 'push'
12 runs-on: ubuntu-latest
13 steps:
14 - run: |
15 curl -X POST \
16 -H "Authorization: Bearer ${{ secrets.STAGING_DEPLOY_ACCESS_TOKEN }}" \
17 -H "Accept: application/vnd.github.v3+json" \
18 https://api.github.com/repos/medusajs/staging/actions/workflows/deploy.yml/dispatches \
19 -d '{"ref":"main"}'