File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -45,14 +45,15 @@ jobs:
4545 project : ${{ needs.parse-command.outputs.project }}
4646 infra : ${{ needs.parse-command.outputs.artifact }}
4747
48- trigger-deployment :
49- needs : [parse-command, notify-user]
48+ deploy-project :
49+ needs : [parse-command, generate-token, notify-user]
5050 if : needs.parse-command.outputs.project != ''
5151 uses : zerodaycode/app-summoners-sync/.github/workflows/deploy-project.yml@develop
5252 with :
5353 project : ${{ needs.parse-command.outputs.project }}
5454 environment : ${{ needs.parse-command.outputs.environment }}
55- secrets : inherit
55+ secrets :
56+ zdc_token : ${{ needs.generate-token.outputs.token }}
5657
5758 deploy-infra :
5859 needs : [parse-command, notify-user]
Original file line number Diff line number Diff line change 99 environment :
1010 required : true
1111 type : string
12+ secrets :
13+ zdc_token :
14+ required : true
1215
1316jobs :
1417 deploy_project_artifact :
1720 - name : Trigger Deployment Workflow
1821 uses : actions/github-script@v7
1922 with :
23+ github-token : ${{ secrets.zdc_token }}
2024 script : |
2125 const environment = `"${{ inputs.environment }}"`;
2226 const project = `"${{ inputs.project }}"`;
You can’t perform that action at this time.
0 commit comments