Skip to content

Commit dd3f2ea

Browse files
- Refactored into TypeScript action that uses [email protected]
1 parent 9359c73 commit dd3f2ea

File tree

13 files changed

+63597
-76
lines changed

13 files changed

+63597
-76
lines changed

.github/workflows/update-release-tags.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
permissions:
1010
contents: write
1111
steps:
12-
- uses: actions/checkout@v4
12+
- uses: actions/checkout@v5
1313
with:
1414
fetch-depth: 0
1515
- uses: RageAgainstThePixel/update-action-release-tags@v1

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,20 @@ A GitHub Action to create a new Unity Project using a predefined template packag
1111
>
1212
> You can use [`unity-setup`](https://github.com/RageAgainstThePixel/unity-setup) action to install Unity Editor before using this action.
1313
14-
- `UNITY_EDITOR_PATH` environment variable must be set to the path of the Unity Editor executable.
14+
***`UNITY_EDITOR_PATH` environment variable must be set to the path of the Unity Editor executable.***
1515

1616
> [!IMPORTANT]
1717
> This action requires an active Unity license be available on the runner.
1818
>
1919
> You can use [`activate-unity-license`](https://github.com/RageAgainstThePixel/activate-unity-license) action to activate the Unity license before using this action.
2020
21-
- A license activation for the Unity Editor must also be completed before using this action.
21+
***A license activation for the Unity Editor must also be completed before using this action.***
2222

2323
### workflow
2424

2525
```yaml
2626
steps:
27-
- uses: RageAgainstThePixel/create-unity-project@v1
27+
- uses: RageAgainstThePixel/create-unity-project@v2
2828
with:
2929
project-name: Test Project
3030
project-directory: ./Unity Project

action.yml

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,6 @@ inputs:
1818
outputs:
1919
project-path:
2020
description: The path to the created Unity project.
21-
value: '${{ inputs.project-directory }}/${{ inputs.project-name }}'
2221
runs:
23-
using: composite
24-
steps:
25-
- name: Get Unity Template
26-
id: template
27-
shell: bash
28-
env:
29-
ACTION_PATH: ${{ github.action_path }}
30-
TEMPLATE_NAME: ${{ inputs.template-name }}
31-
run: '"${ACTION_PATH}/get-unity-template.sh" "${TEMPLATE_NAME}"'
32-
- uses: RageAgainstThePixel/unity-action@v2
33-
name: Create Unity Project
34-
with:
35-
log-name: create-unity-project
36-
args: '-quit -nographics -batchmode -createProject "${{ inputs.project-directory }}/${{ inputs.project-name }}" -cloneFromTemplate "${{ steps.template.outputs.template-path }}"'
22+
using: 'node20'
23+
main: 'dist/index.js'

0 commit comments

Comments
 (0)