From cd393675f83aaf8fc86dee7a1e9e18c9f48cb69e Mon Sep 17 00:00:00 2001 From: Stephen Hodgson Date: Wed, 9 Nov 2022 21:58:04 -0500 Subject: [PATCH] add flag for artifacts --- action.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/action.yaml b/action.yaml index 6bb5d9e..682f2ad 100644 --- a/action.yaml +++ b/action.yaml @@ -52,20 +52,20 @@ runs: args: '-quit -nographics -batchmode -executeMethod Utilities.Editor.BuildPipeline.UnityPlayerBuildTools.StartCommandLineBuild ${{ inputs.additional-build-args }}' - uses: josStorer/get-current-time@v2.0.2 - if: always() + if: ${{ always() && inputs.publish-artifacts == 'true' }} id: current-time with: format: YYYY-MM-DDTHH-mm-ss-sss - uses: actions/upload-artifact@v3 name: Upload Artifacts - if: always() + if: ${{ always() && inputs.publish-artifacts == 'true' }} with: name: '${{ runner.os }}-${{ inputs.build-target }}-Artifacts-${{ steps.current-time.outputs.formattedTime }}' path: '${{ env.UNITY_PROJECT_PATH }}/Builds' - name: Clean Artifacts - if: always() + if: ${{ always() && inputs.publish-artifacts == 'true' }} run: | # Clean Artifacts $artifacts = "${{ env.UNITY_PROJECT_PATH }}/Builds"