Skip to content

Commit

Permalink
Migrate artifact actions from v3 to v4
Browse files Browse the repository at this point in the history
  • Loading branch information
lkubb committed May 10, 2024
1 parent 7fe82ba commit 87b9012
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 19 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,16 +105,18 @@ jobs:
steps:
- name: Download Exit Status Files
if: always()
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: exitstatus
path: exitstatus
pattern: exitstatus-*
merge-multiple: true

- name: Delete Exit Status Artifacts
if: always()
uses: geekyeggo/delete-artifact@v2
uses: geekyeggo/delete-artifact@v5
with:
name: exitstatus
name: exitstatus-*
useGlob: true
failOnError: false

- name: Set Pipeline Exit Status
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy-package-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Download Python Package Artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: salt-extension-${{ inputs.version }}-packages
path: dist
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/docs-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ jobs:
- name: Upload Exit Status
if: always()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: exitstatus
name: exitstatus-${{ github.job }}
path: exitstatus
if-no-files-found: error
10 changes: 9 additions & 1 deletion .github/workflows/package-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
run: python -m build --outdir dist/

- name: Upload build artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: always()
with:
name: salt-extension-${{ inputs.version }}-packages
Expand All @@ -48,3 +48,11 @@ jobs:
run: |
mkdir exitstatus
echo "${{ job.status }}" > exitstatus/${{ github.job }}
- name: Upload Exit Status
if: always()
uses: actions/upload-artifact@v4
with:
name: exitstatus-${{ github.job }}
path: exitstatus
if-no-files-found: error
4 changes: 2 additions & 2 deletions .github/workflows/pre-commit-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ jobs:
- name: Upload Exit Status
if: always()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: exitstatus
name: exitstatus-${{ github.job }}
path: exitstatus
if-no-files-found: error
18 changes: 9 additions & 9 deletions .github/workflows/test-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ jobs:
- name: Upload Logs
if: always()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: runtests-${{ runner.os }}-py${{ matrix.python-version }}-Salt${{ matrix.salt-version }}.log
path: artifacts/runtests-*.log
Expand All @@ -148,9 +148,9 @@ jobs:
- name: Upload Exit Status
if: always()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: exitstatus
name: exitstatus-${{ github.job }}-Py{{ matrix.python-version }}-Salt{{ matrix.salt-version }}
path: exitstatus
if-no-files-found: error

Expand Down Expand Up @@ -286,7 +286,7 @@ jobs:
- name: Upload Logs
if: always()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: runtests-${{ runner.os }}-py${{ matrix.python-version }}-Salt${{ matrix.salt-version }}.log
path: artifacts/runtests-*.log
Expand All @@ -299,9 +299,9 @@ jobs:
- name: Upload Exit Status
if: always()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: exitstatus
name: exitstatus-${{ github.job }}-Py{{ matrix.python-version }}-Salt{{ matrix.salt-version }}
path: exitstatus
if-no-files-found: error

Expand Down Expand Up @@ -421,7 +421,7 @@ jobs:
- name: Upload Logs
if: always()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: runtests-${{ runner.os }}-py${{ matrix.python-version }}-Salt${{ matrix.salt-version }}.log
path: artifacts/runtests-*.log
Expand All @@ -434,8 +434,8 @@ jobs:
- name: Upload Exit Status
if: always()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: exitstatus
name: exitstatus-${{ github.job }}-Py{{ matrix.python-version }}-Salt{{ matrix.salt-version }}
path: exitstatus
if-no-files-found: error

0 comments on commit 87b9012

Please sign in to comment.