mirror of
https://code.forgejo.org/forgejo/upload-artifact.git
synced 2025-04-19 01:17:47 +02:00
Compare commits
29 commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
ef09cdac3e | ||
![]() |
00e36f94d8 | ||
![]() |
4c0ff1c489 | ||
![]() |
5d5d22a312 | ||
![]() |
f1e993d966 | ||
![]() |
4881bfd3f2 | ||
![]() |
a30777e265 | ||
![]() |
3a8048248f | ||
![]() |
9d63e3f2f8 | ||
![]() |
dfa1ab292d | ||
![]() |
d00351bf69 | ||
![]() |
707f5a7b71 | ||
![]() |
26f96dfa69 | ||
![]() |
530ed2c9b8 | ||
![]() |
53ef6987b3 | ||
![]() |
90b0f8eed8 | ||
![]() |
199a58f54f | ||
![]() |
3f353f9d9e | ||
![]() |
997fffa355 | ||
![]() |
52899c8c02 | ||
![]() |
da58a3f7b2 | ||
![]() |
1f64adb853 | ||
![]() |
8d531b15a6 | ||
![]() |
694cdabd8b | ||
![]() |
05d4fe6702 | ||
![]() |
40b3052821 | ||
![]() |
49552fcb82 | ||
![]() |
79615904cc | ||
![]() |
11ff42c7b1 |
162 changed files with 139748 additions and 1566 deletions
2
.github/workflows/check-dist.yml
vendored
2
.github/workflows/check-dist.yml
vendored
|
@ -34,7 +34,7 @@ jobs:
|
|||
run: npm ci
|
||||
|
||||
- name: Rebuild the dist/ directory
|
||||
run: npm run build
|
||||
run: npm run release
|
||||
|
||||
- name: Compare the expected and actual dist/ directories
|
||||
run: |
|
||||
|
|
|
@ -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 }}
|
||||
|
|
109
.github/workflows/test.yml
vendored
109
.github/workflows/test.yml
vendored
|
@ -140,3 +140,112 @@ jobs:
|
|||
Write-Error "File contents of downloaded artifacts 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
|
||||
|
||||
|
|
BIN
.licenses/npm/@actions/artifact.dep.yml
generated
BIN
.licenses/npm/@actions/artifact.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/@actions/core.dep.yml
generated
BIN
.licenses/npm/@actions/core.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/@actions/github.dep.yml
generated
BIN
.licenses/npm/@actions/github.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/@actions/glob.dep.yml
generated
BIN
.licenses/npm/@actions/glob.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/@actions/http-client.dep.yml
generated
BIN
.licenses/npm/@actions/http-client.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/@actions/io.dep.yml
generated
BIN
.licenses/npm/@actions/io.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/@azure/abort-controller.dep.yml
generated
BIN
.licenses/npm/@azure/abort-controller.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/@azure/core-auth.dep.yml
generated
BIN
.licenses/npm/@azure/core-auth.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/@azure/core-http.dep.yml
generated
BIN
.licenses/npm/@azure/core-http.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/@azure/core-lro.dep.yml
generated
BIN
.licenses/npm/@azure/core-lro.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/@azure/core-paging.dep.yml
generated
BIN
.licenses/npm/@azure/core-paging.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/@azure/core-tracing.dep.yml
generated
BIN
.licenses/npm/@azure/core-tracing.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/@azure/core-util.dep.yml
generated
BIN
.licenses/npm/@azure/core-util.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/@azure/logger.dep.yml
generated
BIN
.licenses/npm/@azure/logger.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/@azure/storage-blob.dep.yml
generated
BIN
.licenses/npm/@azure/storage-blob.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/@fastify/busboy.dep.yml
generated
BIN
.licenses/npm/@fastify/busboy.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/@octokit/auth-token.dep.yml
generated
BIN
.licenses/npm/@octokit/auth-token.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/@octokit/core.dep.yml
generated
BIN
.licenses/npm/@octokit/core.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/@octokit/endpoint.dep.yml
generated
BIN
.licenses/npm/@octokit/endpoint.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/@octokit/graphql.dep.yml
generated
BIN
.licenses/npm/@octokit/graphql.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/@octokit/openapi-types-12.11.0.dep.yml
generated
BIN
.licenses/npm/@octokit/openapi-types-12.11.0.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/@octokit/openapi-types-19.1.0.dep.yml
generated
BIN
.licenses/npm/@octokit/openapi-types-19.1.0.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/@octokit/plugin-paginate-rest.dep.yml
generated
BIN
.licenses/npm/@octokit/plugin-paginate-rest.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/@octokit/plugin-request-log.dep.yml
generated
BIN
.licenses/npm/@octokit/plugin-request-log.dep.yml
generated
Binary file not shown.
Binary file not shown.
BIN
.licenses/npm/@octokit/plugin-retry.dep.yml
generated
BIN
.licenses/npm/@octokit/plugin-retry.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/@octokit/request-error-2.1.0.dep.yml
generated
BIN
.licenses/npm/@octokit/request-error-2.1.0.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/@octokit/request-error-5.0.1.dep.yml
generated
BIN
.licenses/npm/@octokit/request-error-5.0.1.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/@octokit/request.dep.yml
generated
BIN
.licenses/npm/@octokit/request.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/@octokit/types-12.4.0.dep.yml
generated
BIN
.licenses/npm/@octokit/types-12.4.0.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/@octokit/types-6.41.0.dep.yml
generated
BIN
.licenses/npm/@octokit/types-6.41.0.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/@opentelemetry/api.dep.yml
generated
BIN
.licenses/npm/@opentelemetry/api.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/@protobuf-ts/plugin-framework.dep.yml
generated
BIN
.licenses/npm/@protobuf-ts/plugin-framework.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/@protobuf-ts/plugin.dep.yml
generated
BIN
.licenses/npm/@protobuf-ts/plugin.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/@protobuf-ts/protoc.dep.yml
generated
BIN
.licenses/npm/@protobuf-ts/protoc.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/@protobuf-ts/runtime-rpc.dep.yml
generated
BIN
.licenses/npm/@protobuf-ts/runtime-rpc.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/@protobuf-ts/runtime.dep.yml
generated
BIN
.licenses/npm/@protobuf-ts/runtime.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/@types/node-fetch.dep.yml
generated
BIN
.licenses/npm/@types/node-fetch.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/@types/node.dep.yml
generated
BIN
.licenses/npm/@types/node.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/@types/tunnel.dep.yml
generated
BIN
.licenses/npm/@types/tunnel.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/archiver-utils-2.1.0.dep.yml
generated
BIN
.licenses/npm/archiver-utils-2.1.0.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/archiver-utils-3.0.4.dep.yml
generated
BIN
.licenses/npm/archiver-utils-3.0.4.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/archiver.dep.yml
generated
BIN
.licenses/npm/archiver.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/async.dep.yml
generated
BIN
.licenses/npm/async.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/asynckit.dep.yml
generated
BIN
.licenses/npm/asynckit.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/balanced-match.dep.yml
generated
BIN
.licenses/npm/balanced-match.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/base64-js.dep.yml
generated
BIN
.licenses/npm/base64-js.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/before-after-hook.dep.yml
generated
BIN
.licenses/npm/before-after-hook.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/binary.dep.yml
generated
BIN
.licenses/npm/binary.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/bl.dep.yml
generated
BIN
.licenses/npm/bl.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/bottleneck.dep.yml
generated
BIN
.licenses/npm/bottleneck.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/brace-expansion-1.1.11.dep.yml
generated
BIN
.licenses/npm/brace-expansion-1.1.11.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/brace-expansion-2.0.1.dep.yml
generated
BIN
.licenses/npm/brace-expansion-2.0.1.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/buffer-crc32.dep.yml
generated
BIN
.licenses/npm/buffer-crc32.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/buffer.dep.yml
generated
BIN
.licenses/npm/buffer.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/buffers.dep.yml
generated
BIN
.licenses/npm/buffers.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/camel-case.dep.yml
generated
BIN
.licenses/npm/camel-case.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/chainsaw.dep.yml
generated
BIN
.licenses/npm/chainsaw.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/combined-stream.dep.yml
generated
BIN
.licenses/npm/combined-stream.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/commander.dep.yml
generated
BIN
.licenses/npm/commander.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/compress-commons.dep.yml
generated
BIN
.licenses/npm/compress-commons.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/concat-map.dep.yml
generated
BIN
.licenses/npm/concat-map.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/core-util-is.dep.yml
generated
BIN
.licenses/npm/core-util-is.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/crc-32.dep.yml
generated
BIN
.licenses/npm/crc-32.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/crc32-stream.dep.yml
generated
BIN
.licenses/npm/crc32-stream.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/crypto.dep.yml
generated
BIN
.licenses/npm/crypto.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/delayed-stream.dep.yml
generated
BIN
.licenses/npm/delayed-stream.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/deprecation.dep.yml
generated
BIN
.licenses/npm/deprecation.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/dot-object.dep.yml
generated
BIN
.licenses/npm/dot-object.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/end-of-stream.dep.yml
generated
BIN
.licenses/npm/end-of-stream.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/events.dep.yml
generated
BIN
.licenses/npm/events.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/form-data.dep.yml
generated
BIN
.licenses/npm/form-data.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/fs-constants.dep.yml
generated
BIN
.licenses/npm/fs-constants.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/fs.realpath.dep.yml
generated
BIN
.licenses/npm/fs.realpath.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/glob.dep.yml
generated
BIN
.licenses/npm/glob.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/graceful-fs.dep.yml
generated
BIN
.licenses/npm/graceful-fs.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/ieee754.dep.yml
generated
BIN
.licenses/npm/ieee754.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/inflight.dep.yml
generated
BIN
.licenses/npm/inflight.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/inherits.dep.yml
generated
BIN
.licenses/npm/inherits.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/is-plain-object.dep.yml
generated
BIN
.licenses/npm/is-plain-object.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/isarray.dep.yml
generated
BIN
.licenses/npm/isarray.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/jwt-decode.dep.yml
generated
BIN
.licenses/npm/jwt-decode.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/lazystream.dep.yml
generated
BIN
.licenses/npm/lazystream.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/lodash.defaults.dep.yml
generated
BIN
.licenses/npm/lodash.defaults.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/lodash.dep.yml
generated
BIN
.licenses/npm/lodash.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/lodash.difference.dep.yml
generated
BIN
.licenses/npm/lodash.difference.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/lodash.flatten.dep.yml
generated
BIN
.licenses/npm/lodash.flatten.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/lodash.isplainobject.dep.yml
generated
BIN
.licenses/npm/lodash.isplainobject.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/lodash.union.dep.yml
generated
BIN
.licenses/npm/lodash.union.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/lower-case.dep.yml
generated
BIN
.licenses/npm/lower-case.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/mime-db.dep.yml
generated
BIN
.licenses/npm/mime-db.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/mime-types.dep.yml
generated
BIN
.licenses/npm/mime-types.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/minimatch-3.1.2.dep.yml
generated
BIN
.licenses/npm/minimatch-3.1.2.dep.yml
generated
Binary file not shown.
Binary file not shown.
BIN
.licenses/npm/minimist.dep.yml
generated
BIN
.licenses/npm/minimist.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/mkdirp.dep.yml
generated
BIN
.licenses/npm/mkdirp.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/no-case.dep.yml
generated
BIN
.licenses/npm/no-case.dep.yml
generated
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue