Skip to content

Commit 4c93eaa

Browse files
committed
chore(gh-actions): 🚑 Tentative changes for project deployment
1 parent ddc175a commit 4c93eaa

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

.github/workflows/deploy-chatbot.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,7 @@ jobs:
5252
with:
5353
project: ${{ needs.parse-command.outputs.project }}
5454
environment: ${{ needs.parse-command.outputs.environment }}
55-
secrets:
56-
zdc_token: ${{ needs.generate-token.outputs.token }}
55+
token: ${{ needs.generate-token.outputs.token }}
5756

5857
deploy-infra:
5958
needs: [parse-command, notify-user]

.github/workflows/deploy-project.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ on:
99
environment:
1010
required: true
1111
type: string
12-
secrets:
13-
zdc_token:
12+
token:
1413
required: true
14+
type: string
1515

1616
jobs:
1717
deploy_project_artifact:
@@ -20,7 +20,7 @@ jobs:
2020
- name: Trigger Deployment Workflow
2121
uses: actions/github-script@v7
2222
with:
23-
github-token: ${{ secrets.zdc_token }}
23+
github-token: ${{ inputs.token || github.token}}
2424
script: |
2525
const environment = `"${{ inputs.environment }}"`;
2626
const project = `"${{ inputs.project }}"`;

0 commit comments

Comments
 (0)