This commit is contained in:
2023-03-24 00:31:25 -07:00
parent a8e5f94385
commit d9e383bfe8

View File

@@ -27,6 +27,10 @@ inputs:
unityBuilder:
description: "Whether or not to use the UnityBuilder instead of a Unity command."
required: false
removeContainer:
description: "Remove the mock container after building."
required: false
default: "true"
runs:
using: "composite"
steps:
@@ -40,7 +44,7 @@ runs:
run: |
CONTAINER=${{ steps.getContainer.outputs.container }}
#docker build -t ${{ inputs.imageTag }} --build-arg IMAGE=$CONTAINER ${{ github.action_path }}
docker build -t ${{ inputs.imageTag }} --build-arg IMAGE=$CONTAINER ${{ github.action_path }}
shell: bash
- name: "Run Unity command."
uses: act/unity/unity@master
@@ -50,8 +54,8 @@ runs:
password: ${{ inputs.password }}
command: ${{ inputs.command }}
unityBuilder: ${{ inputs.unityBuilder }}
image: docker://${{ steps.getContainer.outputs.container }}
- name: "Remove temporary image."
if: ${{ inputs.removeContainer == "true" }}
run: |
docker image rm ${{ inputs.imageTag }}
shell: bash