Compare commits

..
Author SHA1 Message Date
Ben De St Paer-Gotch 8747d8cd76 Update README.md
Code scanning - action / CodeQL-Build (push) Canceled after 0s
2025-06-16 10:11:27 +01:00
Rob Herley 6027e3dd17 Merge pull request #681 from GhadimiR/patch-1
Update README.md
2025-03-25 09:24:05 -04:00
Ryan Ghadimi d7079ed267 Merge branch 'main' into patch-1 2025-03-25 09:29:28 +00:00
Yang Cao ea165f8d65 Merge pull request #685 from salmanmkc/salmanmkc/3-new-upload-artifacts-release
Update to use artifact 2.3.2 package & prepare for new upload-artifact release
2025-03-19 10:34:59 -07:00
Salman Chishti 08396203c1 Prepare for new release of actions/upload-artifact with new toolkit cache version 2025-03-19 05:38:34 -07:00
Ryan Ghadimi 99ec7df36b Update README.md 2025-03-14 15:03:00 +00:00
Yang Cao 4cec3d8aa0 Merge pull request #673 from actions/yacaovsnc/artifact_2.2.2
Update to use artifact 2.2.2 package
2025-02-21 13:56:39 -05:00
Yang Cao e9fad966cc license cache update for artifact
Code scanning - action / CodeQL-Build (push) Canceled after 0s
2025-02-21 13:16:50 -05:00
Yang Cao b26fd06e9d Update to use artifact 2.2.2 package 2025-02-21 13:05:59 -05:00
Yang Cao 65c4c4a1dd Merge pull request #662 from actions/yacaovsnc/add_variable_for_concurrency_and_timeout
Expose env vars to control concurrency and timeout
2025-01-09 10:32:47 -05:00
Yang Cao 0207619228 move files back to satisfy licensed ci
Code scanning - action / CodeQL-Build (push) Canceled after 0s
2025-01-09 10:18:40 -05:00
Yang Cao 1ecca81102 licensed cache updates 2025-01-09 09:57:34 -05:00
Yang Cao 97422693d3 Expose env vars to controll concurrency and timeout 2025-01-09 14:41:08 +00:00
Rob Herley 6f51ac03b9 Merge pull request #656 from bdehamer/bdehamer/artifact-digest
Add new `artifact-digest` output
2024-12-17 17:02:00 -05:00
Brian DeHamer c40c16d999 add new artifact-digest output
Signed-off-by: Brian DeHamer <bdehamer@github.com>
2024-12-17 13:48:06 -08:00
Brian DeHamer 735efb4a0a bump @actions/artifact from 2.1.11 to 2.2.0
Signed-off-by: Brian DeHamer <bdehamer@github.com>
2024-12-17 12:10:23 -08:00
Josh Gross 184d73b71b Merge pull request #578 from hamirmahal/fix/deprecated-nodejs-usage-in-action
fix: deprecated `Node.js` version in action
2024-10-09 13:44:23 -04:00
Josh Gross b4a0a984a0 Merge branch 'main' into fix/deprecated-nodejs-usage-in-action 2024-10-09 13:29:53 -04:00
Josh Gross b4b15b8c7c Merge pull request #632 from actions/joshmgross/undo-dependency-changes
Undo indirect dependency updates from #627
2024-10-09 13:16:31 -04:00
Josh Gross 92b01ebffa Undo indirect dependency updates from #627 2024-10-09 12:35:22 -04: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
Rob Herley 604373da63 Merge pull request #625 from actions/robherley/artifact-2.1.10
Update @actions/artifact to latest version, includes symlink and timeout fixes
2024-10-07 11:46:25 -04:00
Rob Herley 0150148bdf paste right core version 2024-10-07 09:57:16 -04:00
Rob Herley a009b25faa update licenses 2024-10-07 09:55:37 -04:00
Rob Herley 9f6f6f402e update @actions/core and @actions/artifact to latest versions 2024-10-07 09:45:59 -04:00
Joel Ambass 3eadd8b791 Merge pull request #621 from actions/Jcambass-patch-1
Add workflow file for publishing releases to immutable action package
2024-09-26 08:20:21 +02:00
Joel Ambass aeba9f7961 Add workflow file for publishing releases to immutable action package
This workflow file publishes new action releases to the immutable action package of the same name as this repo.

This is part of the Immutable Actions project which is not yet fully released to the public. First party actions like this one are part of our initial testing of this feature.
2024-09-24 15:53:26 +02:00
Josh Gross b18b1d32f3 Merge pull request #607 from actions/joshmgross/hidden-files-readme
Add a section about hidden files
2024-09-02 10:39:50 -04:00
Josh Gross d7c12077c4 Add a section about hidden files 2024-09-02 10:30:03 -04:00
Josh Gross 50769540e7 Merge pull request #598 from actions/joshmgross/exclude-hidden-files
Exclude hidden files by default
2024-08-29 10:38:39 -04:00
Josh Gross d52396ac5d Add a warning about enabling include-hidden-files 2024-08-15 19:45:59 -04:00
Josh Gross 710f362075 Remove "merged" from include-hidden-files input description 2024-08-15 19:39:39 -04:00
Josh Gross 3b315f26f6 npm run release again 🙂 2024-08-15 17:36:20 -04:00
Josh Gross 3be2180eb7 Remove another trailing comma 2024-08-15 17:35:00 -04:00
Josh Gross 453e8d0a40 Update glob license 2024-08-15 17:31:21 -04:00
Josh Gross 0a398c1480 npm run release 2024-08-15 17:30:44 -04:00
Josh Gross a0c40cf602 Update to latest @actions/glob and fix tests 2024-08-15 17:26:43 -04:00
Josh Gross acb59e4776 lint 2024-08-15 16:31:57 -04:00
Josh Gross cb6558bb10 Exclude hidden files by default 2024-08-15 16:22:09 -04:00
Rob Herley 834a144ee9 Merge pull request #594 from actions/robherley/4.3.6
Revert to @actions/artifact 2.1.8
2024-08-06 10:41:08 -04:00
Rob Herley 134dcf33c0 v4.3.6 2024-08-06 10:24:34 -04:00
Rob Herley 73a0b9c954 revert back to @actions/artifact 2.1.8 2024-08-06 10:23:43 -04:00
Rob Herley 89ef406dd8 Merge pull request #588 from actions/robherley/4.3.5
Bump @actions/artifact to v2.1.9
2024-08-02 09:59:06 -04:00
Rob Herley 23d796df36 license updates 2024-08-01 15:50:32 -04:00
Rob Herley e445c64bc2 bump @actions/artifact to v2.1.9 2024-08-01 15:46:49 -04:00
Rob Herley 0b2256b8c0 Merge pull request #584 from actions/robherley/bump-pkgs
Update @actions/artifact version, bump dependencies
2024-07-05 11:11:13 -04:00
Rob Herley 488dcefb9b licensed cache 2024-07-05 14:39:15 +00:00
Rob Herley 04c51f5766 ncc 2024-07-05 13:55:51 +00:00
Rob Herley 32a9e276a8 bump @actions/artifact and npm audit 2024-07-05 13:51:02 +00:00
Hamir Mahal a954e16c38 fix: deprecated Node.js version in action 2024-06-17 13:25:23 -07:00
Hamir Mahal a1d85e775a ci: update CodeQL Action before deprecation 2024-06-17 13:00:34 -07:00
Jonathan Tamsut 552bf3722c new version 2024-04-23 11:22:42 -07:00
eggyhead 79616d2ded Merge pull request #565 from actions/eggyhead/use-artifact-v2.1.6
updating toolkit artifact dependency to 2.1.6
2024-04-22 09:19:03 -07:00
Your Name 65462800fd updating package version
Code scanning - action / CodeQL-Build (push) Canceled after 0s
2024-04-22 08:10:47 -07:00
eggyhead c004fb4bf6 Merge branch 'main' into eggyhead/use-artifact-v2.1.6 2024-04-22 08:08:40 -07:00
Your Name 90aba496fc updating toolkit artifact dependency to 2.1.6 2024-04-22 08:06:58 -07:00
eggyhead b06cde36fc Merge pull request #563 from actions/eggyhead/release-4.3.2
updating to release 4.3.2
2024-04-18 08:13:48 -07:00
eggyhead 1746f4ab65 Revert "updating to release 4.3.2"
Code scanning - action / CodeQL-Build (push) Canceled after 0s
This reverts commit 31685d04a0.

updating to release 4.3.2
2024-04-18 15:05:07 +00:00
eggyhead 31685d04a0 updating to release 4.3.2 2024-04-18 14:56:48 +00:00
eggyhead 18bf333cd2 Merge pull request #562 from actions/eggyhead/update-artifact-v215
updating `@actions/artifact` dependency to v2.1.5 and `@actions/core` to v1.0.1
2024-04-17 15:05:29 -07:00
eggyhead dac413befa update package lock version
Code scanning - action / CodeQL-Build (push) Canceled after 0s
2024-04-17 21:24:58 +00:00
eggyhead bb3b4a3cdb updating package version 2024-04-17 20:38:47 +00:00
eggyhead 3e3da837d2 updating artifact and core dependencies 2024-04-17 17:00:25 +00:00
Rob Herley e35774f165 Merge pull request #561 from actions/robherley/deprecation-notice
Update readme with v3/v2/v1 deprecation notice
2024-04-16 17:12:57 -04:00
Rob Herley e63ea677fb Update readme with v3/v2/v1 deprecation notice
- https://github.blog/changelog/2024-02-13-deprecation-notice-v1-and-v2-of-the-artifact-actions/
- https://github.blog/changelog/2024-04-16-deprecation-notice-v3-of-the-artifact-actions/
2024-04-16 16:48:37 -04:00
Rob Herley ef09cdac3e Merge pull request #523 from andrewakim/andrewakim/migration-readme-fix
Minor fix to the migration readme
2024-02-15 14:06:33 -05:00
Andrew Kim 00e36f94d8 Minor fix to the migration readme 2024-02-15 11:01:40 -08:00
Konrad Pabjan 4c0ff1c489 Update release-new-action-version.yml (#516) 2024-02-05 17:19:59 -05:00
eggyhead 5d5d22a312 Merge pull request #515 from actions/eggyhead/update-artifact-v2.1.1
updating artifact dependency to version 2.1.1
2024-02-05 13:19:54 -08:00
eggyhead f1e993d966 update artifact license
Code scanning - action / CodeQL-Build (push) Canceled after 0s
2024-02-05 17:52:45 +00:00
eggyhead 4881bfd3f2 updating dist: 2024-02-05 17:39:17 +00:00
eggyhead a30777e265 @eggyhead
updating artifact dependency to version 2.1.1
2024-02-05 17:31:38 +00:00
Rob Herley 3a8048248f Merge pull request #511 from actions/robherley/migration-docs-typo
Fix typo with v3 artifact downloads in migration guide
2024-01-31 12:36:26 -05:00
Rob Herley 9d63e3f2f8 Merge branch 'main' into robherley/migration-docs-typo 2024-01-31 12:34:24 -05:00
Rob Herley dfa1ab292d fix typo with v3 artifact downloads in migration guide 2024-01-31 12:27:48 -05:00
Rob Herley d00351bf69 Merge pull request #509 from markmssd/patch-1
Update limitation of `10` artifacts upload to `500`
2024-01-29 09:38:17 -05:00
Mark Massoud 707f5a7b71 Update limitation of 10 artifacts upload to 500
According to https://github.com/actions/upload-artifact/issues/470#issuecomment-1885881535, the limitation has been raised from `10` to `500`. This PR simply updates the docs to reflect the change.
2024-01-27 16:21:08 -05:00
Rob Herley 26f96dfa69 Merge pull request #505 from actions/robherley/merge-artifacts
Add sub-action to merge artifacts
2024-01-23 12:39:33 -05:00
Rob Herley 530ed2c9b8 use correct artifact name in test 2024-01-23 11:26:59 -05:00
Rob Herley 53ef6987b3 add additional integration test for merge all behavior 2024-01-23 11:15:52 -05:00
Rob Herley 90b0f8eed8 add workflow to test merging 2024-01-22 22:50:11 -05:00
Rob Herley 199a58f54f more docs 2024-01-22 22:24:56 -05:00
Rob Herley 3f353f9d9e ncc 2024-01-22 21:46:33 -05:00
Rob Herley 997fffa355 add merge artifact sub-action 2024-01-22 21:46:12 -05:00
Rob Herley 52899c8c02 Merge pull request #504 from actions/robherley/reorganize
Reorganize upload code in prep for merge logic & add more tests
2024-01-22 16:56:11 -05:00
Rob Herley da58a3f7b2 ncc 2024-01-22 15:58:20 -05:00
Rob Herley 1f64adb853 fix import 2024-01-22 15:52:35 -05:00
Rob Herley 8d531b15a6 reorganize upload code in prep for merge logic, add more tests 2024-01-22 15:49:34 -05:00
Rob Herley 694cdabd8b Merge pull request #501 from actions/robherley/overwrite-artifact
Ability to overwrite an Artifact
2024-01-18 15:11:31 -05:00
Rob Herley 05d4fe6702 run licensed against version that matches ci 2024-01-18 13:48:50 -05:00
Rob Herley 40b3052821 update readme 2024-01-18 13:44:36 -05:00
Rob Herley 49552fcb82 add overwrite tests to workflow 2024-01-18 13:33:14 -05:00
Rob Herley 79615904cc licensed cache 2024-01-18 13:32:10 -05:00
Rob Herley 11ff42c7b1 add new overwrite input & docs 2024-01-18 13:31:03 -05:00
Rob Herley 1eb3cb2b3e Merge pull request #497 from actions/robherley/update-readme-limit
Update readme to reflect new artifact per job limit
2024-01-10 15:47:13 -05:00
Rob Herley 8688a86492 Update readme to reflect new artifact/job limit 2024-01-10 15:23:13 -05:00
Konrad Pabjan 73d8b66ede Support artifact-url output (#496)
* Support artifact-url output

* update dist/index.js

* Update license

* Simplify output

* Update README
2024-01-10 12:31:08 -05:00
shmuel c320f57948 Update README.md (#492)
Use correct id of step
2024-01-10 10:00:06 -05:00
Rob Herley cf8714cfea Merge pull request #482 from actions/robherley/add-migration-docs
Add migrations docs
2023-12-18 18:18:28 -05:00
Rob Herley 7f16e37e88 add migrations docs 2023-12-18 18:10:52 -05:00
Rob Herley 353073034f Merge pull request #468 from actions/robherley/misc-updates
Some cleanup
2023-12-14 15:14:19 -05:00
Rob Herley 6c139afa6f update imports and old v4-beta references 2023-12-14 15:08:24 -05:00
Rob Herley c7d193f32e Merge pull request #466 from actions/v4-beta
upload-artifact@v4
2023-12-14 10:04:00 -05:00
Rob Herley 13131bb095 licensed cache
Code scanning - action / CodeQL-Build (push) Canceled after 0s
2023-12-13 16:02:47 -05:00
Rob Herley 4a6c273b98 Merge branch 'main' into v4-beta 2023-12-13 15:10:05 -05:00
Rob Herley f391bb91a3 Merge pull request #465 from actions/robherley/v4-documentation
Update documentation for v4
2023-12-13 13:00:16 -05:00
Rob HerleyandKonrad Pabjan 9653d03c4b Apply suggestions from code review
Co-authored-by: Konrad Pabjan <konradpabjan@github.com>
2023-12-13 12:24:16 -05:00
Rob Herley 875b630764 add limitations section 2023-12-13 11:55:56 -05:00
Rob Herley ecb21463e9 add compression example 2023-12-13 10:17:03 -05:00
Rob Herley 5e7604f84a trim some repeated info 2023-12-12 23:27:17 -05:00
Rob Herley d6437d0758 naming 2023-12-12 23:24:58 -05:00
Rob Herley 1b56155703 s/v4-beta/v4/g 2023-12-12 23:21:37 -05:00
Rob Herley 6a5077f99b update docs and bump @actions/artifact 2023-12-12 23:19:52 -05:00
Vallie Joseph 2a6c27a029 Merge pull request #464 from actions/vmjoseph/v4-beta-more-descriptive-annotations
Consume latest @actions/toolkit
2023-12-11 14:32:50 -05:00
Vallie Joseph 9a179cdb8d adding error message improvement
Code scanning - action / CodeQL-Build (push) Canceled after 0s
2023-12-11 16:41:05 +00:00
Rob Herley eba2a242da consume latest @actions/toolkit (#461) 2023-12-07 11:53:07 -08:00
Rob Herley 500e175644 Merge pull request #460 from actions/robherley/consume-latest-toolkit
Consume latest @actions/artifact
2023-12-04 15:47:37 -05:00
Rob Herley 83b889d09d consume latest @actions/artifact 2023-12-04 15:40:37 -05:00
Rob Herley eeb333dcd2 Merge pull request #453 from actions/robherley/more-v4-improvements
More v4 Improvements: adjustable compression level and tweak concurrency
2023-11-21 10:58:16 -05:00
Rob Herley fa39c94ed2 consume latest @actions/artifact from toolkit 2023-11-20 20:56:30 -05:00
Rob Herley 59ef34ab24 bump for more logs 2023-11-20 11:28:41 -05:00
Rob Herley 20bcd3b8cb add compression level input 2023-11-20 11:08:50 -05:00
Konrad PabjanandRob Herley aa5cae10db Add artifact-id output to v4-beta (#448)
* Add artifact-id to outputs

* ncc

---------

Co-authored-by: Rob Herley <robherley@github.com>
2023-10-26 12:05:31 -04:00
Rob Herley f87a4089c5 Merge pull request #446 from robherley/v4-beta
[v4-beta] Bump linked artifact toolkit pkg
2023-10-16 14:56:45 -04:00
Rob Herley 50ad273a1a bump linked artifact toolkit pkg 2023-10-16 14:30:52 -04:00
Bethany 0ff37d0dc6 Merge pull request #430 from bethanyj28/main
Create v4-beta
2023-08-24 15:06:41 -04:00
Bethany 0597a567d0 update dist 2023-08-24 12:03:24 -07:00
Bethany 0f573694ad bump @actions/artifact to 2.0.0 2023-08-24 11:21:18 -07:00
Bethany 99700c1456 Update upload-artifact for @actions/artifact@v2 2023-08-24 11:01:45 -07:00
205 changed files with 276980 additions and 11991 deletions
+20 -19
View File
@@ -10,9 +10,11 @@ on:
push:
branches:
- main
paths-ignore:
- '**.md'
pull_request:
branches:
- main
paths-ignore:
- '**.md'
workflow_dispatch:
jobs:
@@ -20,33 +22,32 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup Node 16
uses: actions/setup-node@v3
- name: Setup Node 20
uses: actions/setup-node@v4
with:
node-version: 16.x
node-version: 20.x
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Move the committed index.js file
run: mv dist/index.js /tmp
- name: Rebuild with tsc
run: npm run build
- name: Rebuild the index.js file
- name: Rebuild the dist/ directory
run: npm run release
- name: Compare the expected and actual index.js files
run: git diff --ignore-all-space dist/index.js /tmp/index.js
- name: Compare the expected and actual dist/ directories
run: |
if [ "$(git diff --ignore-space-at-eol dist/ | wc -l)" -gt "0" ]; then
echo "Detected uncommitted changes after build. See status below:"
git diff
exit 1
fi
id: diff
# If index.js was different than expected, upload the expected version as an artifact
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
if: ${{ failure() && steps.diff.conclusion == 'failure' }}
with:
name: index.js
path: dist/index.js
name: dist
path: dist/
+4 -4
View File
@@ -17,11 +17,11 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
uses: github/codeql-action/init@v3
# Override language selection by uncommenting this and choosing your languages
# with:
# languages: go, javascript, csharp, python, cpp, java
@@ -29,7 +29,7 @@ jobs:
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v2
uses: github/codeql-action/autobuild@v3
# ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl
@@ -43,4 +43,4 @@ jobs:
# make release
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
uses: github/codeql-action/analyze@v3
+1 -1
View File
@@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
name: Check licenses
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- run: npm ci
- name: Install licensed
run: |
@@ -0,0 +1,20 @@
name: 'Publish Immutable Action Version'
on:
release:
types: [published]
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
packages: write
steps:
- name: Checking out
uses: actions/checkout@v4
- name: Publish
id: publish
uses: actions/publish-immutable-action@0.0.3
@@ -22,7 +22,7 @@ jobs:
steps:
- name: Update the ${{ env.TAG_NAME }} tag
id: update-major-tag
uses: actions/publish-action@v0.2.1
uses: actions/publish-action@v0.3.0
with:
source-tag: ${{ env.TAG_NAME }}
slack-webhook: ${{ secrets.SLACK_WEBHOOK }}
+168 -45
View File
@@ -1,4 +1,5 @@
name: Test
on:
push:
branches:
@@ -10,7 +11,6 @@ on:
- '**.md'
jobs:
build:
name: Build
@@ -23,12 +23,12 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Setup Node 16
uses: actions/setup-node@v3
- name: Setup Node 20
uses: actions/setup-node@v4
with:
node-version: 16.x
node-version: 20.x
cache: 'npm'
- name: Install dependencies
@@ -46,51 +46,57 @@ jobs:
- name: Test
run: npm run test
# Test end-to-end by uploading two artifacts and then downloading them
# Test end-to-end by uploading a few artifacts and then downloading them
- name: Create artifact files
run: |
mkdir -p path/to/dir-1
mkdir -p path/to/dir-2
mkdir -p path/to/dir-3
mkdir -p symlink/
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 "This is a going to be a test for a large enough file that should get compressed with GZip. The @actions/artifact package uses GZip to upload files. This text should have a compression ratio greater than 100% so it should get uploaded using GZip" > path/to/dir-3/gzip.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
- name: 'Upload artifact #1'
uses: ./
with:
name: 'Artifact-A'
name: 'Artifact-A-${{ matrix.runs-on }}'
path: path/to/dir-1/file1.txt
# Upload using a wildcard pattern, name should default to 'artifact' if not provided
# Upload using a wildcard pattern
- name: 'Upload artifact #2'
uses: ./
with:
name: 'Artifact-Wildcard-${{ matrix.runs-on }}'
path: path/**/dir*/
# Upload a directory that contains a file that will be uploaded with GZip
# Upload a multi-path artifact
- name: 'Upload artifact #3'
uses: ./
with:
name: 'GZip-Artifact'
path: path/to/dir-3/
# Upload a directory that contains a file that will be uploaded with GZip
- name: 'Upload artifact #4'
uses: ./
with:
name: 'Multi-Path-Artifact'
name: 'Multi-Path-Artifact-${{ matrix.runs-on }}'
path: |
path/to/dir-1/*
path/to/dir-[23]/*
!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
- name: 'Download artifact #1'
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: 'Artifact-A'
name: 'Artifact-A-${{ matrix.runs-on }}'
path: some/new/path
- name: 'Verify Artifact #1'
@@ -108,9 +114,9 @@ jobs:
# Download Artifact #2 and verify the correctness of the content
- name: 'Download artifact #2'
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: 'artifact'
name: 'Artifact-Wildcard-${{ matrix.runs-on }}'
path: some/other/path
- name: 'Verify Artifact #2'
@@ -127,31 +133,11 @@ jobs:
}
shell: pwsh
# Download Artifact #3 and verify the correctness of the content
- name: 'Download artifact #3'
uses: actions/download-artifact@v3
with:
name: 'GZip-Artifact'
path: gzip/artifact/path
# Because a directory was used as input during the upload the parent directories, path/to/dir-3/, should not be included in the uploaded artifact
- name: 'Verify Artifact #3'
run: |
$gzipFile = "gzip/artifact/path/gzip.txt"
if(!(Test-Path -path $gzipFile))
{
Write-Error "Expected file do not exist"
}
if(!((Get-Content $gzipFile) -ceq "This is a going to be a test for a large enough file that should get compressed with GZip. The @actions/artifact package uses GZip to upload files. This text should have a compression ratio greater than 100% so it should get uploaded using GZip"))
{
Write-Error "File contents of downloaded artifact is incorrect"
}
shell: pwsh
# Download Artifact #4 and verify the correctness of the content
- name: 'Download artifact #4'
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: 'Multi-Path-Artifact'
name: 'Multi-Path-Artifact-${{ matrix.runs-on }}'
path: multi/artifact
- name: 'Verify Artifact #4'
@@ -167,3 +153,140 @@ jobs:
Write-Error "File contents of downloaded artifacts are incorrect"
}
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'
run: |
echo "This file has changed" > path/to/dir-1/file1.txt
# Replace the contents of Artifact #1
- name: 'Overwrite artifact #1'
uses: ./
with:
name: 'Artifact-A-${{ matrix.runs-on }}'
path: path/to/dir-1/file1.txt
overwrite: true
# Download replaced Artifact #1 and verify the correctness of the content
- name: 'Download artifact #1 again'
uses: actions/download-artifact@v4
with:
name: 'Artifact-A-${{ matrix.runs-on }}'
path: overwrite/some/new/path
- name: 'Verify Artifact #1 again'
run: |
$file = "overwrite/some/new/path/file1.txt"
if(!(Test-Path -path $file))
{
Write-Error "Expected file does not exist"
}
if(!((Get-Content $file) -ceq "This file has changed"))
{
Write-Error "File contents of downloaded artifact are incorrect"
}
shell: pwsh
merge:
name: Merge
needs: build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
# Merge all artifacts from previous jobs
- name: Merge all artifacts in run
uses: ./merge/
with:
# our matrix produces artifacts with the same file, this prevents "stomping" on each other, also makes it
# easier to identify each of the merged artifacts
separate-directories: true
- name: 'Download merged artifacts'
uses: actions/download-artifact@v4
with:
name: merged-artifacts
path: all-merged-artifacts
- name: 'Check merged artifact has directories for each artifact'
run: |
$artifacts = @(
"Artifact-A-ubuntu-latest",
"Artifact-A-macos-latest",
"Artifact-A-windows-latest",
"Artifact-Wildcard-ubuntu-latest",
"Artifact-Wildcard-macos-latest",
"Artifact-Wildcard-windows-latest",
"Multi-Path-Artifact-ubuntu-latest",
"Multi-Path-Artifact-macos-latest",
"Multi-Path-Artifact-windows-latest"
)
foreach ($artifact in $artifacts) {
$path = "all-merged-artifacts/$artifact"
if (!(Test-Path $path)) {
Write-Error "$path does not exist."
}
}
shell: pwsh
# Merge Artifact-A-* from previous jobs
- name: Merge all Artifact-A
uses: ./merge/
with:
name: Merged-Artifact-As
pattern: 'Artifact-A-*'
separate-directories: true
# Download merged artifacts and verify the correctness of the content
- name: 'Download merged artifacts'
uses: actions/download-artifact@v4
with:
name: Merged-Artifact-As
path: merged-artifact-a
- name: 'Verify merged artifacts'
run: |
$files = @(
"merged-artifact-a/Artifact-A-ubuntu-latest/file1.txt",
"merged-artifact-a/Artifact-A-macos-latest/file1.txt",
"merged-artifact-a/Artifact-A-windows-latest/file1.txt"
)
foreach ($file in $files) {
if (!(Test-Path $file)) {
Write-Error "$file does not exist."
}
if (!((Get-Content $file) -ceq "This file has changed")) {
Write-Error "$file has incorrect content."
}
}
shell: pwsh
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
Binary file not shown.
BIN
View File
Binary file not shown.
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
Binary file not shown.
BIN
View File
Binary file not shown.
Binary file not shown.
BIN
View File
Binary file not shown.
Binary file not shown.
BIN
View File
Binary file not shown.
Binary file not shown.
BIN
View File
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
View File
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
Binary file not shown.

Some files were not shown because too many files have changed in this diff Show More