Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: game-ci/unity-request-activation-file
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v2.1.0
Choose a base ref
...
head repository: game-ci/unity-request-activation-file
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
  • 2 commits
  • 26 files changed
  • 4 contributors

Commits on Dec 24, 2023

  1. 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>
    AndrewKahr and webbertakken authored Dec 24, 2023
    Copy the full SHA
    65874ef View commit details

Commits on Feb 19, 2025

  1. fix: upgrade @actions/core from 1.10.1 to 1.11.1 (#103)

    Snyk has created this PR to upgrade @actions/core from 1.10.1 to 1.11.1.
    
    See this package in yarn:
    @actions/core
    
    See this project in Snyk:
    https://app.snyk.io/org/gableroux/project/1f12fe4c-19fe-4244-8a2b-1f48f8299a74?utm_source=github&utm_medium=referral&page=upgrade-pr
    
    Co-authored-by: snyk-bot <snyk-bot@snyk.io>
    GabLeRoux and snyk-bot authored Feb 19, 2025
    Copy the full SHA
    ada8622 View commit details
18 changes: 14 additions & 4 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,19 @@
{
"plugins": ["jest", "@typescript-eslint", "prettier", "unicorn"],
"extends": ["plugin:unicorn/recommended", "plugin:github/recommended", "prettier"],
"extends": [
"plugin:unicorn/recommended",
"plugin:github/recommended",
"plugin:prettier/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 9,
"sourceType": "module"
"ecmaVersion": 2020,
"sourceType": "module",
"extraFileExtensions": [".mjs"],
"ecmaFeatures": {
"impliedStrict": true
},
"project": "./tsconfig.json"
},
"env": {
"node": true,
@@ -17,6 +26,7 @@
"import/no-namespace": "off",
"filenames/match-regex": "off",
"unicorn/prefer-node-protocol": "off",
"unicorn/prefer-module": "off"
"unicorn/prefer-module": "off",
"i18n-text/no-en": "off"
}
}
36 changes: 13 additions & 23 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
name: Actions 😎
on:
pull_request: {}
push: { branches: [main] }
pull_request:
push:

jobs:
tests:
name: Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 12.x
node-version: 20.x
- run: yarn
- run: yarn lint
- run: yarn test
@@ -21,30 +21,20 @@ jobs:
requestManualActivationFile:
name: Request manual activation file 🔑
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
unityVersion:
- 2018.4.15f1
- 2019.2.11f1
- 2019.2.14f1
- 2019.2.17f1
# - 2020.1.0a15
steps:
# Checkout repository (required to test local actions)
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v4

# Request manual activation file
- name: Request manual activation file
id: getManualLicenseFile
continue-on-error: true
uses: ./
with:
unityVersion: ${{ matrix.unityVersion }}

# Upload artifact (Unity_v20XX.X.XXXX.alf)
- name: Expose as artifact
uses: actions/upload-artifact@v2
with:
name: ${{ steps.getManualLicenseFile.outputs.filePath }}
path: ${{ steps.getManualLicenseFile.outputs.filePath }}
- name: Check for failure
run: |
if [ "${{ steps.getManualLicenseFile.outcome }}" != "failure" ]; then
echo "Expected failure, got ${{ steps.getManualLicenseFile.outcome }}"
exit 1
fi
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -2,6 +2,8 @@

(Not affiliated with Unity Technologies)

**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.**

GitHub Action for
[requesting the manual activation file](https://github.com/marketplace/actions/unity-request-activation-file) for Unity.

16 changes: 2 additions & 14 deletions action.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,9 @@
name: 'Unity - Request Activation File'
author: Webber Takken <webber@takken.io>
description: 'Request the manual activation file for acquiring a Unity personal license.'
inputs:
unityVersion:
required: false
default: '2019.2.11f1'
description: 'Version of unity to use for building the project.'
customImage:
required: false
default: ''
description: 'Specific docker image that should be used to request activation file'
outputs:
filePath:
description: 'Path of the manual activation file'
description: '[DEPRECATED] Request the manual activation file for acquiring a Unity personal license.'
branding:
icon: 'box'
color: 'gray-dark'
runs:
using: 'node16'
using: 'node20'
main: 'dist/index.js'
15 changes: 0 additions & 15 deletions dist/Dockerfile

This file was deleted.

58 changes: 0 additions & 58 deletions dist/entrypoint.sh

This file was deleted.

26,742 changes: 24,430 additions & 2,312 deletions dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

63 changes: 48 additions & 15 deletions dist/licenses.txt

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/sourcemap-register.js

Large diffs are not rendered by default.

15 changes: 6 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "unity-request-manual-activation-file",
"version": "2.0.0",
"version": "2.2.0",
"description": "Request the manual activation file for acquiring a Unity personal license.",
"main": "dist/index.js",
"repository": "git@github.com:game-ci/unity-request-manual-activation-file.git",
@@ -11,26 +11,23 @@
"build": "tsc && ncc build lib --source-map --license licenses.txt",
"lint": "prettier --check \"src/**/*.{js,ts}\" && eslint src/**/*.ts",
"format": "prettier --write \"src/**/*.{js,ts}\"",
"test": "jest",
"test": "jest --passWithNoTests",
"prepare": "husky install"
},
"dependencies": {
"@actions/core": "^1.9.1",
"@actions/exec": "^1.0.4",
"@actions/github": "^2.2.0",
"@octokit/core": "^3.5.1"
"@actions/core": "^1.11.1"
},
"devDependencies": {
"@types/jest": "^27.4.0",
"@types/node": "^17.0.8",
"@types/node": "^20.10.5",
"@typescript-eslint/parser": "^5.9.0",
"@vercel/ncc": "^0.33.1",
"eslint": "^8.6.0",
"eslint-config-prettier": "^8.1.0",
"eslint-plugin-github": "^4.3.5",
"eslint-plugin-jest": "^25.3.4",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-unicorn": "^40.0.0",
"eslint-plugin-unicorn": "^50.0.1",
"husky": "^7.0.4",
"jest": "^26.6.3",
"jest-circus": "^26.6.3",
@@ -44,7 +41,7 @@
"*.{js,jsx,ts,tsx}": [
"prettier --write",
"eslint",
"jest --findRelatedTests"
"jest --findRelatedTests --passWithNoTests"
],
"*.{json,md,yaml,yml}": [
"prettier --write"
23 changes: 3 additions & 20 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,22 +1,5 @@
import * as core from '@actions/core';
import { Action, Docker, ImageTag, Input } from './model';

async function run() {
try {
Action.checkCompatibility();

const { dockerfile, workspace, actionFolder } = Action;
const unityVersion = Input.unityVersion;
const baseImage = new ImageTag(unityVersion, Input.customImage);

// Build docker image
const actionImage = await Docker.build({ path: actionFolder, dockerfile, baseImage });

// Run docker image
await Docker.run(actionImage, { workspace, unityVersion });
} catch (error: any) {
core.setFailed(error.message);
}
}

run();
core.setFailed(
'This action is no longer supported. Please use the updated activation instructions found at https://game.ci/docs/github/activation',
);
36 changes: 0 additions & 36 deletions src/model/action.test.ts

This file was deleted.

48 changes: 0 additions & 48 deletions src/model/action.ts

This file was deleted.

25 changes: 0 additions & 25 deletions src/model/docker.test.ts

This file was deleted.

53 changes: 0 additions & 53 deletions src/model/docker.ts

This file was deleted.

22 changes: 0 additions & 22 deletions src/model/image-tag.test.ts

This file was deleted.

126 changes: 0 additions & 126 deletions src/model/image-tag.ts

This file was deleted.

7 changes: 0 additions & 7 deletions src/model/index.test.ts

This file was deleted.

4 changes: 0 additions & 4 deletions src/model/index.ts

This file was deleted.

18 changes: 0 additions & 18 deletions src/model/input.test.ts

This file was deleted.

12 changes: 0 additions & 12 deletions src/model/input.ts

This file was deleted.

37 changes: 0 additions & 37 deletions src/model/platform.test.ts

This file was deleted.

51 changes: 0 additions & 51 deletions src/model/platform.ts

This file was deleted.

4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"compilerOptions": {
"target": "es6" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */,
"target": "ES2020" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */,
"module": "commonjs" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */,
"outDir": "./lib" /* Redirect output structure to the directory. */,
"rootDir": "./src" /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */,
"strict": true /* Enable all strict type-checking options. */,
"noImplicitAny": false /* Re-enable after fixing compatibility */ /* Raise error on expressions and declarations with an implied 'any' type. */,
"noImplicitAny": true /* Re-enable after fixing compatibility */ /* Raise error on expressions and declarations with an implied 'any' type. */,
"esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
},
"exclude": ["node_modules", "**/*.test.ts"]
3,394 changes: 1,994 additions & 1,400 deletions yarn.lock

Large diffs are not rendered by default.