From 6bacb74208218e7225e3383ffc3a77403538fe91 Mon Sep 17 00:00:00 2001 From: thundermiracle Date: Sat, 18 Feb 2023 11:33:57 +0900 Subject: [PATCH] test: test if-no-artifact option --- .github/workflows/test.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 47cc4da..200b143 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -77,6 +77,14 @@ jobs: name: 'Artifact-A' path: ~/some/path/with/a/tilde + # Test ignoring error if artifact is not found + - name: Download artifact doesn't exist + uses: ./ + with: + name: 'Artifact-not-exist' + path: path/to/artifact-not-exist + if-no-artifact: 'ignore' + - name: Verify successful download run: | $file1 = "some/new/path/file-A.txt"