Skip to content

Commit c807a7c

Browse files
committed
feat(gh-actions): 🚀 Tentative change generate token as composite
1 parent 16e5191 commit c807a7c

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

.github/actions/generate-token/action.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
name: 'Generate GitHub App Token'
22
description: 'Generates a GitHub App token'
3+
inputs:
4+
app-id:
5+
description: 'GitHub App ID'
6+
required: true
7+
private-key:
8+
description: 'GitHub App Private Key'
9+
required: true
10+
311
outputs:
412
token:
513
description: 'Generated GitHub App Token'
@@ -12,6 +20,6 @@ runs:
1220
uses: actions/create-github-app-token@v1
1321
id: generate-zdc-token
1422
with:
15-
app-id: ${{ vars.ZDC_AUTH_APP_ID }}
16-
private-key: ${{ secrets.ZDC_AUTH_PRIVATE_KEY }}
23+
app-id: ${{ inputs.app-id }}
24+
private-key: ${{ inputs.private-key }}
1725
owner: ${{ github.repository_owner }}

.github/workflows/deploy-project.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@ jobs:
1818
- name: Generate Token
1919
id: generate-token
2020
uses: zerodaycode/app-summoners-sync/.github/actions/generate-token@develop
21-
21+
with:
22+
app-id: ${{ vars.ZDC_AUTH_APP_ID }}
23+
private-key: ${{ secrets.ZDC_AUTH_PRIVATE_KEY }}
24+
2225
- name: Trigger Deployment Workflow
2326
uses: actions/github-script@v7
2427
with:

0 commit comments

Comments
 (0)