Skip to content

Commit

Permalink
post-build: use actions/upload-artifact@v4
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhongRuoyu committed Apr 16, 2024
1 parent f110e93 commit d174d1e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions post-build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ runs:

- name: Upload logs
if: always()
uses: actions/upload-artifact@v3-node20
uses: actions/upload-artifact@v4
with:
name: logs-${{ inputs.runner }}
path: ${{ inputs.logs-directory }}
Expand All @@ -63,16 +63,16 @@ runs:

- name: Upload failed bottles
if: always() && steps.bottles.outputs.failures > 0
uses: actions/upload-artifact@v3-node20
uses: actions/upload-artifact@v4
with:
name: bottles-${{ inputs.runner }}
path: ${{ inputs.bottles-directory }}/failed

- name: Upload list of successfully tested dependents
if: always() && !fromJson(inputs.upload-bottles) && steps.bottles.outputs.dependents > 0
uses: actions/upload-artifact@v3-node20
uses: actions/upload-artifact@v4
with:
name: dependents
name: dependents-${{ inputs.runner }}
path: ${{ inputs.bottles-directory }}/tested-dependents-*.txt

# Must be run before the `Upload bottles` step so that failed
Expand All @@ -87,9 +87,9 @@ runs:

- name: Upload bottles
if: always() && fromJson(inputs.upload-bottles) && (steps.bottles.outputs.count > 0 || steps.bottles.outputs.skipped > 0)
uses: actions/upload-artifact@v3-node20
uses: actions/upload-artifact@v4
with:
name: bottles
name: bottles-${{ inputs.runner }}
path: ${{ inputs.bottles-directory }}

- name: Post cleanup
Expand Down

0 comments on commit d174d1e

Please sign in to comment.