Skip to content

Commit 8448086

Browse files
authored
Merge pull request #627 from actions/robherley/v4.4.2
Bump `@actions/artifact` to 2.1.11
2 parents 604373d + b1d4642 commit 8448086

File tree

6 files changed

+84065
-94108
lines changed

6 files changed

+84065
-94108
lines changed

.github/workflows/test.yml

+17-5
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ jobs:
5656
echo "Lorem ipsum dolor sit amet" > path/to/dir-1/file1.txt
5757
echo "Hello world from file #2" > path/to/dir-2/file2.txt
5858
echo "Hello from a symlinked file" > symlink/original.txt
59-
ln -s $(pwd)/symlink/original.txt symlink/file.txt
59+
ln -s $(pwd)/symlink/original.txt symlink/abs.txt
60+
ln -s original.txt symlink/rel.txt
6061
shell: bash
6162

6263
# Upload a single file artifact
@@ -87,7 +88,9 @@ jobs:
8788
uses: ./
8889
with:
8990
name: 'Symlinked-Artifact-${{ matrix.runs-on }}'
90-
path: symlink/file.txt
91+
path: |
92+
symlink/abs.txt
93+
symlink/rel.txt
9194
9295
# Download Artifact #1 and verify the correctness of the content
9396
- name: 'Download artifact #1'
@@ -159,12 +162,21 @@ jobs:
159162

160163
- name: 'Verify symlinked artifact'
161164
run: |
162-
$file = "from/symlink/file.txt"
163-
if(!(Test-Path -path $file))
165+
$abs = "from/symlink/abs.txt"
166+
if(!(Test-Path -path $abs))
167+
{
168+
Write-Error "Expected file does not exist"
169+
}
170+
if(!((Get-Content $abs) -ceq "Hello from a symlinked file"))
171+
{
172+
Write-Error "File contents of downloaded artifact are incorrect"
173+
}
174+
$rel = "from/symlink/rel.txt"
175+
if(!(Test-Path -path $rel))
164176
{
165177
Write-Error "Expected file does not exist"
166178
}
167-
if(!((Get-Content $file) -ceq "Hello from a symlinked file"))
179+
if(!((Get-Content $rel) -ceq "Hello from a symlinked file"))
168180
{
169181
Write-Error "File contents of downloaded artifact are incorrect"
170182
}

.licenses/npm/@actions/artifact.dep.yml

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)