test: test if-no-artifact option

This commit is contained in:
thundermiracle 2023-02-18 11:33:57 +09:00
parent b8b81c1932
commit 6bacb74208

View File

@ -77,6 +77,14 @@ jobs:
name: 'Artifact-A' name: 'Artifact-A'
path: ~/some/path/with/a/tilde 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 - name: Verify successful download
run: | run: |
$file1 = "some/new/path/file-A.txt" $file1 = "some/new/path/file-A.txt"