Skip to content

Commit 3fc611b

Browse files
committed
fix: add unity secrets to reusable workflow
1 parent 62df854 commit 3fc611b

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

.github/workflows/release-pre.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,5 @@ jobs:
1414
with:
1515
blockPullRequestRelease: false
1616
blockReleaseCommit: true
17-
secrets:
18-
githubToken: ${{ secrets.GH_TOKEN }}
17+
secrets: inherit
1918

.github/workflows/release-template.yml

+10-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,13 @@ on:
1313
required: false
1414
type: boolean
1515
secrets:
16-
githubToken:
16+
GH_TOKEN:
17+
required: true
18+
UNITY_LICENSE:
19+
required: true
20+
UNITY_EMAIL:
21+
required: true
22+
UNITY_PASSWORD:
1723
required: true
1824

1925
jobs:
@@ -42,7 +48,7 @@ jobs:
4248
dry_run: ${{ inputs.dryRun }}
4349
ci: ${{ inputs.blockPullRequestRelease }}
4450
env:
45-
GH_TOKEN: ${{ secrets.githubToken }}
51+
GH_TOKEN: ${{ secrets.GH_TOKEN }}
4652

4753
- name: 📄 Summary
4854
run: |
@@ -103,6 +109,8 @@ jobs:
103109
allowDirtyBuild: true
104110
env:
105111
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
112+
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
113+
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
106114

107115
- name: 🗂️ Upload Unity Package Artifact
108116
uses: actions/upload-artifact@v4

.github/workflows/release.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,4 @@ jobs:
1010
create-release:
1111
name: Release
1212
uses: ./.github/workflows/release-template.yml
13-
secrets:
14-
githubToken: ${{ secrets.GH_TOKEN }}
13+
secrets: inherit

0 commit comments

Comments
 (0)