Skip to content

Commit 65874ef

Browse files
Ensure action fails when used so users are pointed to updated docs (#100)
* Ensure action fails when used so users are pointed to updated docs * Update readme Co-authored-by: Webber Takken <webber@takken.io> --------- Co-authored-by: Webber Takken <webber@takken.io>
1 parent 0ae5da4 commit 65874ef

26 files changed

+26505
-4314
lines changed

.eslintrc.json

+14-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,19 @@
11
{
22
"plugins": ["jest", "@typescript-eslint", "prettier", "unicorn"],
3-
"extends": ["plugin:unicorn/recommended", "plugin:github/recommended", "prettier"],
3+
"extends": [
4+
"plugin:unicorn/recommended",
5+
"plugin:github/recommended",
6+
"plugin:prettier/recommended"
7+
],
48
"parser": "@typescript-eslint/parser",
59
"parserOptions": {
6-
"ecmaVersion": 9,
7-
"sourceType": "module"
10+
"ecmaVersion": 2020,
11+
"sourceType": "module",
12+
"extraFileExtensions": [".mjs"],
13+
"ecmaFeatures": {
14+
"impliedStrict": true
15+
},
16+
"project": "./tsconfig.json"
817
},
918
"env": {
1019
"node": true,
@@ -17,6 +26,7 @@
1726
"import/no-namespace": "off",
1827
"filenames/match-regex": "off",
1928
"unicorn/prefer-node-protocol": "off",
20-
"unicorn/prefer-module": "off"
29+
"unicorn/prefer-module": "off",
30+
"i18n-text/no-en": "off"
2131
}
2232
}

.github/workflows/main.yml

+13-23
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
name: Actions 😎
22
on:
3-
pull_request: {}
4-
push: { branches: [main] }
3+
pull_request:
4+
push:
55

66
jobs:
77
tests:
88
name: Tests
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v1
12-
- uses: actions/setup-node@v1
11+
- uses: actions/checkout@v4
12+
- uses: actions/setup-node@v4
1313
with:
14-
node-version: 12.x
14+
node-version: 20.x
1515
- run: yarn
1616
- run: yarn lint
1717
- run: yarn test
@@ -21,30 +21,20 @@ jobs:
2121
requestManualActivationFile:
2222
name: Request manual activation file 🔑
2323
runs-on: ubuntu-latest
24-
strategy:
25-
fail-fast: false
26-
matrix:
27-
unityVersion:
28-
- 2018.4.15f1
29-
- 2019.2.11f1
30-
- 2019.2.14f1
31-
- 2019.2.17f1
32-
# - 2020.1.0a15
3324
steps:
3425
# Checkout repository (required to test local actions)
3526
- name: Checkout repository
36-
uses: actions/checkout@v2
27+
uses: actions/checkout@v4
3728

3829
# Request manual activation file
3930
- name: Request manual activation file
4031
id: getManualLicenseFile
32+
continue-on-error: true
4133
uses: ./
42-
with:
43-
unityVersion: ${{ matrix.unityVersion }}
4434

45-
# Upload artifact (Unity_v20XX.X.XXXX.alf)
46-
- name: Expose as artifact
47-
uses: actions/upload-artifact@v2
48-
with:
49-
name: ${{ steps.getManualLicenseFile.outputs.filePath }}
50-
path: ${{ steps.getManualLicenseFile.outputs.filePath }}
35+
- name: Check for failure
36+
run: |
37+
if [ "${{ steps.getManualLicenseFile.outcome }}" != "failure" ]; then
38+
echo "Expected failure, got ${{ steps.getManualLicenseFile.outcome }}"
39+
exit 1
40+
fi

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
(Not affiliated with Unity Technologies)
44

5+
**This action is no longer maintained and should not be used. Please follow the [updated activation steps](https://game.ci/docs/github/activation) for v4 and newer of Unity Actions.**
6+
57
GitHub Action for
68
[requesting the manual activation file](https://github.com/marketplace/actions/unity-request-activation-file) for Unity.
79

action.yml

+2-14
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,9 @@
11
name: 'Unity - Request Activation File'
22
author: Webber Takken <webber@takken.io>
3-
description: 'Request the manual activation file for acquiring a Unity personal license.'
4-
inputs:
5-
unityVersion:
6-
required: false
7-
default: '2019.2.11f1'
8-
description: 'Version of unity to use for building the project.'
9-
customImage:
10-
required: false
11-
default: ''
12-
description: 'Specific docker image that should be used to request activation file'
13-
outputs:
14-
filePath:
15-
description: 'Path of the manual activation file'
3+
description: '[DEPRECATED] Request the manual activation file for acquiring a Unity personal license.'
164
branding:
175
icon: 'box'
186
color: 'gray-dark'
197
runs:
20-
using: 'node16'
8+
using: 'node20'
219
main: 'dist/index.js'

dist/Dockerfile

-15
This file was deleted.

dist/entrypoint.sh

-58
This file was deleted.

0 commit comments

Comments
 (0)