GeezerVison is showing github.com — chore(gh-actions): :ambulance: Tentative change for project deployment · zerodaycode/app-summoners-sync@ddc175a
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: .github/workflows/deploy-chatbot.yml +4-3Lines changed: 4 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -45,14 +45,15 @@ jobs: |
45 | 45 | project: ${{ needs.parse-command.outputs.project }} |
46 | 46 | infra: ${{ needs.parse-command.outputs.artifact }} |
47 | 47 |
|
48 | | - trigger-deployment: |
49 | | - needs: [parse-command, notify-user] |
| 48 | + deploy-project: |
| 49 | + needs: [parse-command, generate-token, notify-user] |
50 | 50 | if: needs.parse-command.outputs.project != '' |
51 | 51 | uses: zerodaycode/app-summoners-sync/.github/workflows/deploy-project.yml@develop |
52 | 52 | with: |
53 | 53 | project: ${{ needs.parse-command.outputs.project }} |
54 | 54 | environment: ${{ needs.parse-command.outputs.environment }} |
55 | | - secrets: inherit |
| 55 | + secrets: |
| 56 | + zdc_token: ${{ needs.generate-token.outputs.token }} |
56 | 57 |
|
57 | 58 | deploy-infra: |
58 | 59 | needs: [parse-command, notify-user] |
|
Collapse file
Copy file name to clipboardExpand all lines: .github/workflows/deploy-project.yml +4Lines changed: 4 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
9 | 9 | environment: |
10 | 10 | required: true |
11 | 11 | type: string |
| 12 | + secrets: |
| 13 | + zdc_token: |
| 14 | + required: true |
12 | 15 |
|
13 | 16 | jobs: |
14 | 17 | deploy_project_artifact: |
|
17 | 20 | - name: Trigger Deployment Workflow |
18 | 21 | uses: actions/github-script@v7 |
19 | 22 | with: |
| 23 | + github-token: ${{ secrets.zdc_token }} |
20 | 24 | script: | |
21 | 25 | const environment = `"${{ inputs.environment }}"`; |
22 | 26 | const project = `"${{ inputs.project }}"`; |
|