From 07744da91981a60fde81eb163c1e8d81b8ef7613 Mon Sep 17 00:00:00 2001 From: "James M. Greene" Date: Thu, 23 Mar 2023 22:37:03 -0500 Subject: [PATCH 1/2] Fail if no artifact file is found to upload Fixes #24 --- action.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/action.yml b/action.yml index 73fbd61..89b3416 100644 --- a/action.yml +++ b/action.yml @@ -74,3 +74,4 @@ runs: name: ${{ inputs.name }} path: ${{ runner.temp }}/artifact.tar retention-days: ${{ inputs.retention-days }} + if-no-files-found: error From d07e4817c28a87188b8877ae57a8dd696069acc5 Mon Sep 17 00:00:00 2001 From: "James M. Greene" Date: Fri, 24 Mar 2023 10:10:04 -0500 Subject: [PATCH 2/2] Lock in at a major version of `actions/upload-artifact` to prevent potential future breaks --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 89b3416..d807537 100644 --- a/action.yml +++ b/action.yml @@ -69,7 +69,7 @@ runs: INPUT_PATH: ${{ inputs.path }} - name: Upload artifact - uses: actions/upload-artifact@main + uses: actions/upload-artifact@v3 with: name: ${{ inputs.name }} path: ${{ runner.temp }}/artifact.tar