mirror of
https://github.com/actions/download-artifact.git
synced 2024-11-22 13:45:28 +00:00
test: test if-no-artifact option
This commit is contained in:
parent
b8b81c1932
commit
6bacb74208
8
.github/workflows/test.yml
vendored
8
.github/workflows/test.yml
vendored
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user