File tree Expand file tree Collapse file tree 3 files changed +15
-14
lines changed
actions/setup-unity-project Expand file tree Collapse file tree 3 files changed +15
-14
lines changed Original file line number Diff line number Diff line change 1- name : ' Create Unity Project'
1+ name : ' Setup Unity Project'
22
33inputs :
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
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 }}
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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 }}
You can’t perform that action at this time.
0 commit comments