@@ -37,29 +37,29 @@ jobs:
3737 secrets : inherit
3838
3939 # Trigger deployment for staging
40- # deploy:
41- # name: trigger staging deployment
42- # needs:
43- # - build
44- # runs-on: ubuntu-22.04
45- # steps:
46- # - name: Dispatch Deployment
47- # run: |
48- # curl --request POST \
49- # --url 'https://api.github.com/repos/${{ secrets.PRIVATE_REPO_OWNER }}/${{ secrets.PRIVATE_REPO_NAME }}/dispatches' \
50- # --header 'Accept: application/vnd.github+json' \
51- # --header 'Authorization: Bearer ${{ secrets.GH_PAT }}' \
52- # --header 'X-GitHub-Api-Version: 2022-11-28' \
53- # --header 'Content-Type: application/json' \
54- # --data '{
55- # "event_type": "deploy-staging",
56- # "client_payload": {
57- # "actor": "${{ github.actor }}",
58- # "ref": "${{ github.sha }}",
59- # "pulumiRefresh": "true",
60- # "hiveAppUsePersistedDocuments": "true"
61- # }
62- # }'
40+ deploy :
41+ name : trigger staging deployment
42+ needs :
43+ - build
44+ runs-on : ubuntu-22.04
45+ steps :
46+ - name : Dispatch Deployment
47+ run : |
48+ curl --request POST \
49+ --url 'https://api.github.com/repos/${{ secrets.PRIVATE_REPO_OWNER }}/${{ secrets.PRIVATE_REPO_NAME }}/dispatches' \
50+ --header 'Accept: application/vnd.github+json' \
51+ --header 'Authorization: Bearer ${{ secrets.GH_PAT }}' \
52+ --header 'X-GitHub-Api-Version: 2022-11-28' \
53+ --header 'Content-Type: application/json' \
54+ --data '{
55+ "event_type": "deploy-staging",
56+ "client_payload": {
57+ "actor": "${{ github.actor }}",
58+ "ref": "${{ github.sha }}",
59+ "pulumiRefresh": "true",
60+ "hiveAppUsePersistedDocuments": "true"
61+ }
62+ }'
6363
6464 # ESLint and Prettier
6565 code-style :
0 commit comments