test
This commit is contained in:
@@ -24,10 +24,10 @@ inputs:
|
||||
command:
|
||||
description: "Unity command to run."
|
||||
required: false
|
||||
useGraphics:
|
||||
noGraphics:
|
||||
description: "Whether or not to use the graphics device when running Unity."
|
||||
required: false
|
||||
default: "false"
|
||||
default: "true"
|
||||
unityBuilder:
|
||||
description: "Whether or not to use the UnityBuilder instead of a Unity command."
|
||||
required: false
|
||||
@@ -62,7 +62,7 @@ runs:
|
||||
id: command
|
||||
run: |
|
||||
COMMAND="${{ inputs.command }}"
|
||||
if [[ "{{ inputs.useGraphics }}" != "true" ]]; then
|
||||
if [[ "{{ inputs.noGraphics }}" == "true" ]]; then
|
||||
COMMAND="-nographics $COMMAND"
|
||||
fi
|
||||
echo "command=$COMMAND"
|
||||
|
||||
@@ -30,10 +30,10 @@ inputs:
|
||||
description: "Name of the directory to copy the artifacts from."
|
||||
required: true
|
||||
default: artifacts
|
||||
useGraphics:
|
||||
noGraphics:
|
||||
description: "Whether or not to use the graphics device when running Unity."
|
||||
required: false
|
||||
default: "false"
|
||||
default: "true"
|
||||
zipName:
|
||||
description: "Name of the resulting zip file."
|
||||
required: false
|
||||
@@ -54,7 +54,7 @@ runs:
|
||||
command: ${{ inputs.command }}
|
||||
unityBuilder: ${{ inputs.unityBuilder }}
|
||||
cacheVolume: ${{ inputs.cacheVolume }}
|
||||
useGraphics: ${{ inputs.useGraphics }}
|
||||
noGraphics: ${{ inputs.noGraphics }}
|
||||
- name: "Compress build"
|
||||
if: ${{ inputs.zipName }}
|
||||
env:
|
||||
|
||||
@@ -30,10 +30,10 @@ inputs:
|
||||
description: "Name of the volume to copy the artifacts to."
|
||||
required: true
|
||||
default: ${{ env.ARTIFACTS_VOLUME }}
|
||||
useGraphics:
|
||||
noGraphics:
|
||||
description: "Whether or not to use the graphics device when running Unity."
|
||||
required: false
|
||||
default: ${{ env.USE_GRAPHICS || 'false' }}
|
||||
default: ${{ env.NO_GRAPHICS || 'true' }}
|
||||
artifactsDir:
|
||||
description: "Name of the directory to copy the artifacts from."
|
||||
required: true
|
||||
@@ -55,4 +55,4 @@ runs:
|
||||
artifactsDir: ${{ inputs.artifactsDir }}
|
||||
cacheVolume: ${{ inputs.cacheVolume }}
|
||||
zipName: ${{ inputs.zipName }}
|
||||
useGraphics: ${{ inputs.useGraphics }}
|
||||
noGraphics: ${{ inputs.noGraphics }}
|
||||
|
||||
@@ -24,10 +24,10 @@ inputs:
|
||||
unityBuilder:
|
||||
description: "Whether or not to use the UnityBuilder instead of a Unity command."
|
||||
required: false
|
||||
useGraphics:
|
||||
noGraphics:
|
||||
description: "Whether or not to use the graphics device when running Unity."
|
||||
required: false
|
||||
default: "false"
|
||||
default: "true"
|
||||
cacheVolume:
|
||||
description: "Name of the volume to cache the Library folder to."
|
||||
required: false
|
||||
@@ -64,7 +64,7 @@ runs:
|
||||
password: ${{ inputs.password }}
|
||||
command: -projectPath ${{ inputs.projectPath }} -buildTarget ${{ steps.getTarget.outputs.buildTarget }} ${{ inputs.command }}
|
||||
removeContainer: ${{ inputs.removeContainer }}
|
||||
useGraphics: ${{ inputs.useGraphics }}
|
||||
noGraphics: ${{ inputs.noGraphics }}
|
||||
- name: "Cache the Library folder."
|
||||
if: inputs.cacheVolume != null
|
||||
uses: act/common/docker/docker-cp@master
|
||||
|
||||
Reference in New Issue
Block a user