Merge pull request #627 from actions/robherley/v4.4.2
Some checks failed
Test / Build (macos-latest) (push) Waiting to run
Test / Build (windows-latest) (push) Waiting to run
Test / Merge (push) Blocked by required conditions
Check dist/ / check-dist (push) Failing after 8s
Licensed / Check licenses (push) Successful in 36s
Test / Build (ubuntu-latest) (push) Failing after 7s
Code scanning - action / CodeQL-Build (push) Failing after 7s

Bump `@actions/artifact` to 2.1.11
This commit is contained in:
Rob Herley 2024-10-08 14:15:05 -04:00 committed by GitHub
commit 84480863f2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 61008 additions and 71051 deletions

View File

@ -56,7 +56,8 @@ jobs:
echo "Lorem ipsum dolor sit amet" > path/to/dir-1/file1.txt
echo "Hello world from file #2" > path/to/dir-2/file2.txt
echo "Hello from a symlinked file" > symlink/original.txt
ln -s $(pwd)/symlink/original.txt symlink/file.txt
ln -s $(pwd)/symlink/original.txt symlink/abs.txt
ln -s original.txt symlink/rel.txt
shell: bash
# Upload a single file artifact
@ -87,7 +88,9 @@ jobs:
uses: ./
with:
name: 'Symlinked-Artifact-${{ matrix.runs-on }}'
path: symlink/file.txt
path: |
symlink/abs.txt
symlink/rel.txt
# Download Artifact #1 and verify the correctness of the content
- name: 'Download artifact #1'
@ -159,12 +162,21 @@ jobs:
- name: 'Verify symlinked artifact'
run: |
$file = "from/symlink/file.txt"
if(!(Test-Path -path $file))
$abs = "from/symlink/abs.txt"
if(!(Test-Path -path $abs))
{
Write-Error "Expected file does not exist"
}
if(!((Get-Content $file) -ceq "Hello from a symlinked file"))
if(!((Get-Content $abs) -ceq "Hello from a symlinked file"))
{
Write-Error "File contents of downloaded artifact are incorrect"
}
$rel = "from/symlink/rel.txt"
if(!(Test-Path -path $rel))
{
Write-Error "Expected file does not exist"
}
if(!((Get-Content $rel) -ceq "Hello from a symlinked file"))
{
Write-Error "File contents of downloaded artifact are incorrect"
}

Binary file not shown.

65879
dist/merge/index.js vendored

File diff suppressed because one or more lines are too long

64065
dist/upload/index.js vendored

File diff suppressed because one or more lines are too long

1149
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
{
"name": "upload-artifact",
"version": "4.4.1",
"version": "4.4.2",
"description": "Upload an Actions Artifact in a workflow run",
"main": "dist/upload/index.js",
"scripts": {
@ -29,7 +29,7 @@
},
"homepage": "https://github.com/actions/upload-artifact#readme",
"dependencies": {
"@actions/artifact": "^2.1.10",
"@actions/artifact": "^2.1.11",
"@actions/core": "^1.11.1",
"@actions/github": "^6.0.0",
"@actions/glob": "^0.5.0",