Compare commits

...

6 Commits

Author SHA1 Message Date
Tom Wieczorek d92fed4176
Merge edfa2db5a6 into 84480863f2 2024-10-08 21:11:18 +02:00
Rob Herley 84480863f2
Merge pull request #627 from actions/robherley/v4.4.2
Bump `@actions/artifact` to 2.1.11
2024-10-08 14:15:05 -04:00
Rob Herley b1d4642b69
add explicit relative and absolute symlinks to workflow 2024-10-08 13:39:45 -04:00
Rob Herley d50e66084c
bump version 2024-10-08 13:35:54 -04:00
Rob Herley aabe6f8050
build with @actions/artifact v2.1.11 2024-10-08 12:46:18 -04:00
Tom Wieczorek edfa2db5a6
Fix numbering of ordered list in CONTRIBUTING.md
Also: Remove unused link declaration.
2023-07-13 12:03:40 +02:00
7 changed files with 61011 additions and 71055 deletions

View File

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

View File

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

View File

@ -2,7 +2,6 @@
[fork]: https://github.com/actions/upload-artifact/fork [fork]: https://github.com/actions/upload-artifact/fork
[pr]: https://github.com/actions/upload-artifact/compare [pr]: https://github.com/actions/upload-artifact/compare
[style]: https://github.com/styleguide/js
[code-of-conduct]: CODE_OF_CONDUCT.md [code-of-conduct]: CODE_OF_CONDUCT.md
Hi there! We're thrilled that you'd like to contribute to this project. Your help is essential for keeping it great. Hi there! We're thrilled that you'd like to contribute to this project. Your help is essential for keeping it great.
@ -32,8 +31,8 @@ Artifact related issues will be tracked in this repository so please do not open
6. Make sure your code is correctly formatted: `npm run format` 6. Make sure your code is correctly formatted: `npm run format`
7. Make sure your code passes linting: `npm run lint` 7. Make sure your code passes linting: `npm run lint`
8. Update `dist/index.js` using `npm run release`. This creates a single javascript file that is used as an entry-point for the action 8. Update `dist/index.js` using `npm run release`. This creates a single javascript file that is used as an entry-point for the action
7. Push to your fork and [submit a pull request][pr] 9. Push to your fork and [submit a pull request][pr]
8. Pat your self on the back and wait for your pull request to be reviewed and merged. 10. Pat your self on the back and wait for your pull request to be reviewed and merged.
Here are a few things you can do that will increase the likelihood of your pull request being accepted: Here are a few things you can do that will increase the likelihood of your pull request being accepted:

66349
dist/merge/index.js vendored

File diff suppressed because one or more lines are too long

64535
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.1", "version": "4.4.2",
"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.10", "@actions/artifact": "^2.1.11",
"@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",