1
0
Fork 0
mirror of https://code.forgejo.org/actions/download-artifact.git synced 2024-12-23 04:06:00 +01:00

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'
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"