mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-26 22:19:40 -08:00
4d13976e47
Signed-off-by: Julien Pivotto <roidelapluie@o11y.eu> Signed-off-by: Julien Pivotto <roidelapluie@o11y.eu>
18 lines
479 B
YAML
18 lines
479 B
YAML
# 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 cvf artifact.tar ${{ inputs.directory }}
|
|
mv artifact.tar artifact-$(sha1sum artifact.tar|awk '{ print $1 }').tar
|
|
shell: bash
|
|
- uses: actions/upload-artifact@v3
|
|
with:
|
|
path: artifact-*.tar
|