Skip to content

Commit 64ef8bd

Browse files
committed
Add initial implementation
1 parent ff265c8 commit 64ef8bd

File tree

5 files changed

+45
-1
lines changed

5 files changed

+45
-1
lines changed

.dockerignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Order ignore, include
2+
*
3+
4+
# Files required for the action
5+
!entrypoint.sh
6+
!action.yml

Dockerfile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
FROM gableroux/unity3d:2019.2.11f1
2+
3+
LABEL "com.github.actions.name"="Unity - Return License"
4+
LABEL "com.github.actions.description"="Return a Unity Pro license and free up a spot towards the maximum number of active licenses."
5+
LABEL "com.github.actions.icon"="box"
6+
LABEL "com.github.actions.color"="gray-dark"
7+
8+
LABEL "repository"="http://github.com/webbertakken/unity-actions"
9+
LABEL "homepage"="http://github.com/webbertakken/unity-actions"
10+
LABEL "maintainer"="Webber Takken <webber@takken.io>"
11+
12+
ADD entrypoint.sh /entrypoint.sh
13+
RUN chmod +x /entrypoint.sh
14+
ENTRYPOINT ["/entrypoint.sh"]

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Part of the [Unity Actions](https://github.com/webbertakken/unity-actions) colle
99

1010
---
1111

12-
Use this action to return your Unity Pro license and free up a spot towards the
12+
Use this action to return a Unity Pro license and free up a spot towards the
1313
maximum number of active licenses.
1414

1515
### Documentation

action.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: 'Unity - Return License'
2+
author: Webber Takken <webber@takken.io>
3+
description: 'Return a Unity Pro license and free up a spot towards the maximum number of active licenses.'
4+
inputs: {}
5+
outputs: {}
6+
runs:
7+
using: 'docker'
8+
image: 'Dockerfile'
9+
branding:
10+
icon: 'box'
11+
color: 'gray-dark'

entrypoint.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/usr/bin/env bash
2+
3+
#
4+
# Return a Unity Pro license and free up a spot towards the maximum number of active licenses.
5+
#
6+
xvfb-run --auto-servernum --server-args='-screen 0 640x480x24' \
7+
/opt/Unity/Editor/Unity \
8+
-batchmode \
9+
-nographics \
10+
-logFile /dev/stdout \
11+
-quit \
12+
-returnlicense
13+

0 commit comments

Comments
 (0)