Skip to content

Commit

Permalink
chore(ci) use unique names for release artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
2 people authored and thibaultcha committed Feb 17, 2024
1 parent c2f4d32 commit 987936f
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 20 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.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.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 }}-${{ inputs.debug }}
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.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
34 changes: 17 additions & 17 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: release-artifacts-${{ github.job }}
path: dist
retention-days: ${{ env.RETENTION_DAYS }}

Expand Down Expand Up @@ -180,12 +180,12 @@ jobs:
env:
GITHUB_OAUTH_TOKEN: ${{ secrets.GH_BOT_TOKEN }}
- name: Upload binary
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v3
with:
name: release-artifacts
name: release-artifacts-${{ github.job }}
path: dist
retention-days: ${{ env.RETENTION_DAYS }}
- uses: actions/upload-artifact@v4
- uses: actions/upload-artifact@v3
if: failure()
with:
name: ${{ github.workflow }}-${{ github.job }}-sha-${{ github.sha }}-run-${{ github.run_number }}
Expand Down Expand Up @@ -214,7 +214,7 @@ jobs:
- name: Upload binary
uses: actions/upload-artifact@v4
with:
name: release-artifacts
name: release-artifacts-${{ github.job }}
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: release-artifacts-${{ github.job }}
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: release-artifacts-${{ github.job }}
path: dist
retention-days: ${{ env.RETENTION_DAYS }}
- uses: actions/upload-artifact@v4
Expand Down Expand Up @@ -316,12 +316,12 @@ jobs:
env:
GITHUB_OAUTH_TOKEN: ${{ secrets.GH_BOT_TOKEN }}
- name: Upload binary
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v3
with:
name: release-artifacts
name: release-artifacts-${{ github.job }}
path: dist
retention-days: ${{ env.RETENTION_DAYS }}
- uses: actions/upload-artifact@v4
- uses: actions/upload-artifact@v3
if: failure()
with:
name: ${{ github.workflow }}-${{ github.job }}-sha-${{ github.sha }}-run-${{ github.run_number }}
Expand Down Expand Up @@ -350,7 +350,7 @@ jobs:
- name: Upload binary
uses: actions/upload-artifact@v4
with:
name: release-artifacts
name: release-artifacts-${{ github.job }}
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: release-artifacts-${{ github.job }}
path: dist
retention-days: ${{ env.RETENTION_DAYS }}
- uses: actions/upload-artifact@v3
Expand Down Expand Up @@ -411,12 +411,12 @@ jobs:
env:
GITHUB_OAUTH_TOKEN: ${{ secrets.GH_BOT_TOKEN }}
- name: Upload binary
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: release-artifacts
name: release-artifacts-${{ github.job }}
path: dist
retention-days: ${{ env.RETENTION_DAYS }}
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
if: failure()
with:
name: ${{ github.workflow }}-${{ github.job }}-sha-${{ github.sha }}-run-${{ github.run_number }}
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: release-artifacts-*
- name: Drop Wasmer binaries
run: find . -name '*wasmer*' | xargs rm -f
# Channel: nightly
Expand Down

0 comments on commit 987936f

Please sign in to comment.