Skip to content

Commit 772ff38

Browse files
committed
fix: reorder checkout and cache steps in workflow
1 parent 771f9af commit 772ff38

File tree

1 file changed

+12
-13
lines changed

1 file changed

+12
-13
lines changed

.github/workflows/reusable-build-package.yaml

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -62,18 +62,6 @@ jobs:
6262
timeout-minutes: 20
6363
runs-on: ubuntu-22.04
6464
steps:
65-
- uses: actions/checkout@v4
66-
with:
67-
ref: ${{ inputs.commit-id }}
68-
fetch-depth: 0
69-
lfs: true
70-
71-
- uses: actions/cache@v4
72-
with:
73-
path: Library
74-
key: Library-StandaloneLinux64
75-
restore-keys: Library-
76-
7765
- name: Normalize Path
7866
id: path-normalizer
7967
shell: bash
@@ -106,6 +94,18 @@ jobs:
10694
echo "normalized-project-path=/$project_path/" >> "$GITHUB_OUTPUT"
10795
echo "::notice title=Export Path:: $export_path"
10896
97+
- uses: actions/checkout@v4
98+
with:
99+
ref: ${{ inputs.commit-id }}
100+
fetch-depth: 0
101+
lfs: true
102+
103+
- uses: actions/cache@v4
104+
with:
105+
path: Library
106+
key: Library-StandaloneLinux64
107+
restore-keys: Library-
108+
109109
- uses: game-ci/unity-builder@v4
110110
env:
111111
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
@@ -114,7 +114,6 @@ jobs:
114114
with:
115115
targetPlatform: StandaloneLinux64
116116
unityVersion: ${{ inputs.unity-version }}
117-
projectPath: ${{ steps.path-normalizer.outputs.normalized-project-path }}
118117
buildsPath: ${{ inputs.builds-path }}
119118
buildName: ${{ steps.path-normalizer.outputs.normalized-package-name }}
120119
buildMethod: ${{ inputs.build-method }}

0 commit comments

Comments
 (0)