Skip to content

Commit

Permalink
Merge pull request #12 from roidelapluie/fix-dl
Browse files Browse the repository at this point in the history
Fix save and restore artefact
  • Loading branch information
roidelapluie authored Sep 10, 2024
2 parents 1a7aaf1 + 63e9931 commit 2959ef3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ runs:
with:
repository: 'prometheus/promci'
path: '.github/promci'
ref: v0.4.2
ref: v0.4.3
3 changes: 2 additions & 1 deletion actions/restore_artifacts/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ runs:
- name: Download all workflow run artifacts
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
with:
name: artifact
pattern: artifact-*
merge-multiple: true
path: .artifacts
- run: |
for tar in .artifacts/*.tar
Expand Down
3 changes: 3 additions & 0 deletions actions/save_artifacts/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ runs:
- run: |
tar cvf artifact.tar ${{ inputs.directory }}
mv artifact.tar artifact-$(sha1sum artifact.tar|awk '{ print $1 }').tar
echo NAME=$(echo artifact-*.tar) >> $GITHUB_OUTPUT
shell: bash
id: tar
- uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
with:
name: ${steps.tar.outputs.NAME}
path: artifact-*.tar

0 comments on commit 2959ef3

Please sign in to comment.