forked from prometheus/prometheus
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Julien Pivotto <[email protected]>
- Loading branch information
1 parent
6bfb1a2
commit 03982eb
Showing
7 changed files
with
44 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Restore artifacts created by save_artifacts. | ||
# Tar is used because the default actions do not preserve directory structure | ||
# and file mode. | ||
name: Restore artifacts | ||
runs: | ||
using: composite | ||
steps: | ||
- name: Download all workflow run artifacts | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: artifact | ||
path: .artifacts | ||
- run: | | ||
for tar in .artifacts/*.tar | ||
do | ||
tar xvf $tar | ||
done | ||
rm -v .artifacts/*.tar | ||
shell: bash | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
path: artifact-*.tar |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Tar is used because the default actions do not preserve directory structure | ||
# and file mode. | ||
name: Save artifacts | ||
inputs: | ||
directory: | ||
type: string | ||
description: Path of the directory to save | ||
runs: | ||
using: composite | ||
steps: | ||
- run: | | ||
tar cf artifact.tar ${{ inputs.directory }} | ||
mv artifact.tar artifact-$(sha1sum|awk '{ print $1 }').tar | ||
shell: bash | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
path: artifact-*.tar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters