Skip to content

Commit ddc175a

Browse files
committed
chore(gh-actions): 🚑 Tentative change for project deployment
1 parent 60785fa commit ddc175a

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.github/workflows/deploy-chatbot.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff 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]

.github/workflows/deploy-project.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ on:
99
environment:
1010
required: true
1111
type: string
12+
secrets:
13+
zdc_token:
14+
required: true
1215

1316
jobs:
1417
deploy_project_artifact:
@@ -17,6 +20,7 @@ jobs:
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 }}"`;

0 commit comments

Comments
 (0)