Skip to content
This repository was archived by the owner on Jan 15, 2026. It is now read-only.

Commit 3f3f418

Browse files
committed
Fix return license
1 parent e82a94b commit 3f3f418

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

action.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ runs:
2020
using: node12
2121
main: src/activate-license.js
2222
post: src/return-license.js
23-
post-if: inputs.unity-serial != ''
2423
branding:
2524
icon: unlock
2625
color: gray-dark

src/return-license.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ async function run() {
77
if (!unityPath) {
88
throw new Error('unity path not found');
99
}
10-
await unity.returnLicense(unityPath);
10+
if (core.getInput('unity-serial')) {
11+
await unity.returnLicense(unityPath);
12+
}
1113
} catch (error) {
1214
core.setFailed(error.message);
1315
}

0 commit comments

Comments
 (0)