Skip to content

Commit

Permalink
Migrate upload-artifact GitHub Action to v4 from v3 (#148)
Browse files Browse the repository at this point in the history
  • Loading branch information
EdmondChuiHW authored Feb 5, 2025
1 parent db7cedd commit a880a6f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/actions/download-artifact/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@ runs:
using: composite
steps:
- name: Download artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: ${{ inputs.name }}
path: ${{ inputs.path }}
include-hidden-files: true

- name: Extract artifacts
run: tar -xvf ${{ inputs.name }}.tar
Expand Down
3 changes: 2 additions & 1 deletion .github/actions/upload-artifact/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,13 @@ runs:
shell: bash

- name: Upload artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
if-no-files-found: ${{ inputs.if-no-files-found }}
name: ${{ inputs.name }}
path: ${{ inputs.name }}.tar
retention-days: ${{ inputs.retention-days }}
overwrite: true

- name: Remove archive
run: rm -f ${{ inputs.name }}.tar
Expand Down

0 comments on commit a880a6f

Please sign in to comment.