File tree 3 files changed +27
-0
lines changed
3 files changed +27
-0
lines changed Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
3
+ #
4
+ # Create directory for license activation
5
+ #
6
+
7
+ ACTIVATE_LICENSE_PATH=" $GITHUB_WORKSPACE /_activate-license"
8
+ mkdir -p " $ACTIVATE_LICENSE_PATH "
9
+
3
10
#
4
11
# Run steps
5
12
#
@@ -8,6 +15,12 @@ source /steps/activate.sh
8
15
source /steps/build.sh
9
16
source /steps/return_license.sh
10
17
18
+ #
19
+ # Remove license activation directory
20
+ #
21
+
22
+ rm -r " $ACTIVATE_LICENSE_PATH "
23
+
11
24
#
12
25
# Instructions for debugging
13
26
#
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
3
+ # Run in ACTIVATE_LICENSE_PATH directory
4
+ echo " Changing to \" $ACTIVATE_LICENSE_PATH \" directory."
5
+ pushd " $ACTIVATE_LICENSE_PATH "
6
+
3
7
if [[ -n " $UNITY_LICENSE " ]] || [[ -n " $UNITY_LICENSE_FILE " ]]; then
4
8
#
5
9
# PERSONAL LICENSE MODE
98
102
echo " Exit code was: $UNITY_EXIT_CODE "
99
103
exit $UNITY_EXIT_CODE
100
104
fi
105
+
106
+ # Return to previous working directory
107
+ popd
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
3
+ # Run in ACTIVATE_LICENSE_PATH directory
4
+ echo " Changing to \" $ACTIVATE_LICENSE_PATH \" directory."
5
+ pushd " $ACTIVATE_LICENSE_PATH "
6
+
3
7
if [[ -n " $UNITY_SERIAL " ]]; then
4
8
#
5
9
# PROFESSIONAL (SERIAL) LICENSE MODE
@@ -11,3 +15,6 @@ if [[ -n "$UNITY_SERIAL" ]]; then
11
15
-quit \
12
16
-returnlicense
13
17
fi
18
+
19
+ # Return to previous working directory
20
+ popd
You can’t perform that action at this time.
0 commit comments