Skip to content

Commit 9873847

Browse files
committed
Fix ci
1 parent bb514a3 commit 9873847

File tree

3 files changed

+15
-14
lines changed

3 files changed

+15
-14
lines changed

.github/actions/create-unity-project/action.yml renamed to .github/actions/setup-unity-project/action.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: 'Create Unity Project'
1+
name: 'Setup Unity Project'
22

33
inputs:
44
unityVersion:
@@ -12,11 +12,11 @@ runs:
1212
using: 'composite'
1313
steps:
1414
# Unityプロジェクトを配置
15-
- name: Create directory
15+
- name: Create directory if not exists
1616
if: ${{ inputs.projectDirectory != '' }}
1717
run: mkdir -p ${{ inputs.projectDirectory }}
1818
shell: bash
19-
- name: Create minimal project contents
19+
- name: Create minimal project folders and ProjectVersion.txt
2020
working-directory: ${{ inputs.projectDirectory }}
2121
run: |
2222
mkdir Assets
@@ -25,8 +25,8 @@ runs:
2525
echo "m_EditorVersion: ${{ inputs.unityVersion }}" > ProjectSettings/ProjectVersion.txt
2626
shell: bash
2727
- name: Create manifest.json
28-
working-directory: ${{ inputs.projectDirectory }}
28+
working-directory:
2929
uses: jsdaniell/create-json@v1.2.3
3030
with:
31-
name: "Packages/manifest.json"
31+
name: "${{ inputs.projectDirectory }}/Packages/manifest.json"
3232
json: ${{ inputs.manifest }}

.github/workflows/release.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,19 +34,20 @@ jobs:
3434
if: needs.config.outputs.config_package == 'true'
3535
steps:
3636

37-
# Create Unity project
38-
- name: Create Unity project
39-
uses: ./github/actions/create-unity-project
40-
with:
41-
unityVersion: 2022.3.22f1
42-
manifest: "{}"
43-
4437
# Checkout Local Repository
4538
- name: Checkout
4639
uses: actions/checkout@v4
4740
with:
4841
path: ${{ env.packagePath }}
4942

43+
# Create Unity project
44+
- name: Setup Unity project
45+
uses: ${{ env.packagePath }}/.github/actions/setup-unity-project
46+
with:
47+
unityVersion: 2022.3.22f1
48+
manifest: "{}"
49+
50+
5051
# Get the Package version based on the package.json file
5152
- name: Get Version
5253
id: version

.github/workflows/run-tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ jobs:
2626
- editmode
2727
- standalone
2828
steps:
29-
- name: Create package testing project
30-
uses: ./github/actions/create-unity-project
29+
- name: Setup package testing project
30+
uses: ${{ env.PACKAGE_DIRECTORY }}/.github/actions/setup-unity-project
3131
with:
3232
projectDirectory: ${{ env.PROJECT_DIRECTORY }}
3333
unityVersion: ${{ matrix.unityVersion }}

0 commit comments

Comments
 (0)