Skip to content

Commit

Permalink
chore(ci) assign unique names to uploaded artifacts
Browse files Browse the repository at this point in the history
Since v4, action `upload-artifact` no longer supports uploading artifacts with
non-unique names.
  • Loading branch information
casimiro committed Feb 14, 2024
1 parent 45a0c12 commit d45c0c1
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/job-clang-analyzer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,5 @@ jobs:
- uses: actions/upload-artifact@v4
if: ${{ failure() && !env.ACT }}
with:
name: ${{ github.workflow }}-${{ github.job }}-sha-${{ github.sha }}-run-${{ github.run_number }}
name: ${{ github.workflow }}-${{ github.job }}-sha-${{ github.sha }}-run-${{ github.run_number }}-${{ inputs.ngx != '' && format('nginx-{0}', inputs.ngx) || format('openresty-{0}', inputs.openresty) }}-${{ inputs.runtime }}-${{ inputs.ssl }}-${{ inputs.hup }}-${{ inputs.debug }}
path: work/scans/*
2 changes: 1 addition & 1 deletion .github/workflows/job-unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ jobs:
- uses: actions/upload-artifact@v4
if: ${{ failure() && !env.ACT }}
with:
name: ${{ github.workflow }}-${{ github.job }}-sha-${{ github.sha }}-run-${{ github.run_number }}-${{ inputs.runtime }}
name: ${{ github.workflow }}-${{ github.job }}-sha-${{ github.sha }}-run-${{ github.run_number }}-${{ inputs.ngx != '' && format('nginx-{0}', inputs.ngx) || format('openresty-{0}', inputs.openresty) }}-${{ inputs.runtime }}-${{ inputs.module_type == 'dynamic' && 'dynamic' || 'static'}}-${{ inputs.ssl }}-${{ inputs.hup }}
path: |
work/buildroot/
t/servroot*
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/job-valgrind-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ jobs:
- uses: actions/upload-artifact@v4
if: ${{ failure() && !env.ACT }}
with:
name: ${{ github.workflow }}-${{ github.job }}-sha-${{ github.sha }}-run-${{ github.run_number }}-${{ inputs.runtime }}
name: ${{ github.workflow }}-${{ github.job }}-sha-${{ github.sha }}-run-${{ github.run_number }}-${{ inputs.ngx != '' && format('nginx-{0}', inputs.ngx) || format('openresty-{0}', inputs.openresty) }}-${{ inputs.runtime }}-${{ inputs.hup }}
path: |
work/buildroot/
t/servroot*
Expand Down
22 changes: 11 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ jobs:
- name: Upload archive
uses: actions/upload-artifact@v4
with:
name: release-artifacts
name: ${{ github.job }}-artifacts
path: dist
retention-days: ${{ env.RETENTION_DAYS }}

Expand Down Expand Up @@ -182,7 +182,7 @@ jobs:
- name: Upload binary
uses: actions/upload-artifact@v4
with:
name: release-artifacts
name: ${{ github.job }}-artifacts
path: dist
retention-days: ${{ env.RETENTION_DAYS }}
- uses: actions/upload-artifact@v4
Expand Down Expand Up @@ -214,7 +214,7 @@ jobs:
- name: Upload binary
uses: actions/upload-artifact@v4
with:
name: release-artifacts
name: ${{ github.job }}-artifacts
path: dist
retention-days: ${{ env.RETENTION_DAYS }}
- uses: actions/upload-artifact@v4
Expand Down Expand Up @@ -246,7 +246,7 @@ jobs:
- name: Upload binary
uses: actions/upload-artifact@v4
with:
name: release-artifacts
name: ${{ github.job }}-artifacts
path: dist
retention-days: ${{ env.RETENTION_DAYS }}
- uses: actions/upload-artifact@v4
Expand Down Expand Up @@ -286,7 +286,7 @@ jobs:
- name: Upload binary
uses: actions/upload-artifact@v4
with:
name: release-artifacts
name: ${{ github.job }}-artifacts
path: dist
retention-days: ${{ env.RETENTION_DAYS }}
- uses: actions/upload-artifact@v4
Expand Down Expand Up @@ -318,7 +318,7 @@ jobs:
- name: Upload binary
uses: actions/upload-artifact@v4
with:
name: release-artifacts
name: ${{ github.job }}-artifacts
path: dist
retention-days: ${{ env.RETENTION_DAYS }}
- uses: actions/upload-artifact@v4
Expand Down Expand Up @@ -350,7 +350,7 @@ jobs:
- name: Upload binary
uses: actions/upload-artifact@v4
with:
name: release-artifacts
name: ${{ github.job }}-artifacts
path: dist
retention-days: ${{ env.RETENTION_DAYS }}
- uses: actions/upload-artifact@v4
Expand Down Expand Up @@ -382,7 +382,7 @@ jobs:
- name: Upload binary
uses: actions/upload-artifact@v4
with:
name: release-artifacts
name: ${{ github.job }}-artifacts
path: dist
retention-days: ${{ env.RETENTION_DAYS }}
- uses: actions/upload-artifact@v3
Expand Down Expand Up @@ -413,7 +413,7 @@ jobs:
- name: Upload binary
uses: actions/upload-artifact@v3
with:
name: release-artifacts
name: ${{ github.job }}-artifacts
path: dist
retention-days: ${{ env.RETENTION_DAYS }}
- uses: actions/upload-artifact@v3
Expand All @@ -429,9 +429,9 @@ jobs:
timeout-minutes: ${{ fromJSON(vars.GHA_DEFAULT_TIMEOUT) }}
steps:
- name: Retrieve sibling release artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: release-artifacts
pattern: *-artifacts
- name: Drop Wasmer binaries
run: find . -name '*wasmer*' | xargs rm -f
# Channel: nightly
Expand Down

0 comments on commit d45c0c1

Please sign in to comment.