Compare commits
No commits in common. "61da466dfbbe337b9bb7cb2c3fbbce7cb3fa866e" and "a8045443bd203901e69aa0e0e8999872c960177c" have entirely different histories.
61da466dfb
...
a8045443bd
|
@ -46,19 +46,14 @@ jobs:
|
||||||
- name: Test
|
- name: Test
|
||||||
run: npm run test
|
run: npm run test
|
||||||
|
|
||||||
# Test end-to-end by uploading a few artifacts and then downloading them
|
# Test end-to-end by uploading two artifacts and then downloading them
|
||||||
- name: Create artifact files
|
- name: Create artifact files
|
||||||
run: |
|
run: |
|
||||||
mkdir -p path/to/dir-1
|
mkdir -p path/to/dir-1
|
||||||
mkdir -p path/to/dir-2
|
mkdir -p path/to/dir-2
|
||||||
mkdir -p path/to/dir-3
|
mkdir -p path/to/dir-3
|
||||||
mkdir -p symlink/
|
|
||||||
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
|
|
||||||
ln -s $(pwd)/symlink/original.txt symlink/abs.txt
|
|
||||||
ln -s original.txt symlink/rel.txt
|
|
||||||
shell: bash
|
|
||||||
|
|
||||||
# Upload a single file artifact
|
# Upload a single file artifact
|
||||||
- name: 'Upload artifact #1'
|
- name: 'Upload artifact #1'
|
||||||
|
@ -84,14 +79,6 @@ jobs:
|
||||||
path/to/dir-[23]/*
|
path/to/dir-[23]/*
|
||||||
!path/to/dir-3/*.txt
|
!path/to/dir-3/*.txt
|
||||||
|
|
||||||
- name: 'Upload symlinked artifact'
|
|
||||||
uses: ./
|
|
||||||
with:
|
|
||||||
name: 'Symlinked-Artifact-${{ matrix.runs-on }}'
|
|
||||||
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'
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
|
@ -154,34 +141,6 @@ jobs:
|
||||||
}
|
}
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
|
|
||||||
- name: 'Download symlinked artifact'
|
|
||||||
uses: actions/download-artifact@v4
|
|
||||||
with:
|
|
||||||
name: 'Symlinked-Artifact-${{ matrix.runs-on }}'
|
|
||||||
path: from/symlink
|
|
||||||
|
|
||||||
- name: 'Verify symlinked artifact'
|
|
||||||
run: |
|
|
||||||
$abs = "from/symlink/abs.txt"
|
|
||||||
if(!(Test-Path -path $abs))
|
|
||||||
{
|
|
||||||
Write-Error "Expected file does not exist"
|
|
||||||
}
|
|
||||||
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"
|
|
||||||
}
|
|
||||||
shell: pwsh
|
|
||||||
|
|
||||||
- name: 'Alter file 1 content'
|
- name: 'Alter file 1 content'
|
||||||
run: |
|
run: |
|
||||||
echo "This file has changed" > path/to/dir-1/file1.txt
|
echo "This file has changed" > path/to/dir-1/file1.txt
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
---
|
---
|
||||||
name: "@actions/artifact"
|
name: "@actions/artifact"
|
||||||
version: 2.1.11
|
version: 2.1.8
|
||||||
type: npm
|
type: npm
|
||||||
summary:
|
summary:
|
||||||
homepage:
|
homepage:
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
---
|
---
|
||||||
name: "@actions/core"
|
name: "@actions/core"
|
||||||
version: 1.11.1
|
version: 1.10.1
|
||||||
type: npm
|
type: npm
|
||||||
summary:
|
summary:
|
||||||
homepage:
|
homepage:
|
||||||
|
|
|
@ -60,9 +60,8 @@ There is also a new sub-action, `actions/upload-artifact/merge`. For more info,
|
||||||
### Breaking Changes
|
### Breaking Changes
|
||||||
|
|
||||||
1. On self hosted runners, additional [firewall rules](https://github.com/actions/toolkit/tree/main/packages/artifact#breaking-changes) may be required.
|
1. On self hosted runners, additional [firewall rules](https://github.com/actions/toolkit/tree/main/packages/artifact#breaking-changes) may be required.
|
||||||
2. While it's not possible to upload to the same named artifact multiple times, you can overwrite it and/or merge artifacts into a single one. An example of this breaking change is outlined in [the migration guide](docs/MIGRATION.md#multiple-uploads-to-the-same-named-artifact).
|
2. Limit of Artifacts for an individual job. Each job in a workflow run now has a limit of 500 artifacts.
|
||||||
3. Limit of Artifacts for an individual job. Each job in a workflow run now has a limit of 500 artifacts.
|
3. With `v4.4` and later, hidden files are excluded by default.
|
||||||
4. With `v4.4` and later, hidden files are excluded by default.
|
|
||||||
|
|
||||||
For assistance with breaking changes, see [MIGRATION.md](docs/MIGRATION.md).
|
For assistance with breaking changes, see [MIGRATION.md](docs/MIGRATION.md).
|
||||||
|
|
||||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "upload-artifact",
|
"name": "upload-artifact",
|
||||||
"version": "4.4.2",
|
"version": "4.4.0",
|
||||||
"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,8 +29,8 @@
|
||||||
},
|
},
|
||||||
"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.8",
|
||||||
"@actions/core": "^1.11.1",
|
"@actions/core": "^1.10.1",
|
||||||
"@actions/github": "^6.0.0",
|
"@actions/github": "^6.0.0",
|
||||||
"@actions/glob": "^0.5.0",
|
"@actions/glob": "^0.5.0",
|
||||||
"@actions/io": "^1.1.2",
|
"@actions/io": "^1.1.2",
|
||||||
|
|
Loading…
Reference in New Issue