mirror of
https://github.com/game-ci/unity-builder.git
synced 2025-07-04 12:25:19 -04:00

* adding option to pass git credential * trigger change * trigger change * build dist/index * prettier * adding set git credentials with more config * correct docker.ts input * change default of git credential * try using git command line to set token * remove git config cat * adding api: to git config * change to token * change input name to reflect the type github private token Co-authored-by: Alexander Brandstedt <alexander@infralium.com> Co-authored-by: Alexander Brandstedt <mad01@users.noreply.github.com>
46 lines
852 B
Bash
Executable File
46 lines
852 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
#
|
|
# Create directory for license activation
|
|
#
|
|
|
|
ACTIVATE_LICENSE_PATH="$GITHUB_WORKSPACE/_activate-license"
|
|
mkdir -p "$ACTIVATE_LICENSE_PATH"
|
|
|
|
#
|
|
# Run steps
|
|
#
|
|
source /steps/set_gitcredential.sh
|
|
source /steps/activate.sh
|
|
source /steps/build.sh
|
|
source /steps/return_license.sh
|
|
|
|
#
|
|
# Remove license activation directory
|
|
#
|
|
|
|
rm -r "$ACTIVATE_LICENSE_PATH"
|
|
|
|
#
|
|
# Instructions for debugging
|
|
#
|
|
|
|
if [[ $BUILD_EXIT_CODE -gt 0 ]]; then
|
|
echo ""
|
|
echo "###########################"
|
|
echo "# Failure #"
|
|
echo "###########################"
|
|
echo ""
|
|
echo "Please note that the exit code is not very descriptive."
|
|
echo "Most likely it will not help you solve the issue."
|
|
echo ""
|
|
echo "To find the reason for failure: please search for errors in the log above."
|
|
echo ""
|
|
fi;
|
|
|
|
#
|
|
# Exit with code from the build step.
|
|
#
|
|
|
|
exit $BUILD_EXIT_CODE
|