Compare commits

..

1 Commits

Author SHA1 Message Date
Tom Wieczorek 90b53c63a6
Merge edfa2db5a6 into 604373da63 2024-10-08 08:03:53 +02:00
6 changed files with 70998 additions and 60955 deletions

View File

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

View File

@ -1,6 +1,6 @@
--- ---
name: "@actions/artifact" name: "@actions/artifact"
version: 2.1.11 version: 2.1.10
type: npm type: npm
summary: summary:
homepage: homepage:

65861
dist/merge/index.js vendored

File diff suppressed because one or more lines are too long

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