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:
parent
b8b81c1932
commit
6bacb74208
1 changed files with 8 additions and 0 deletions
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 a new issue