mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-18 11:34:05 -08:00
19 lines
515 B
YAML
19 lines
515 B
YAML
|
# To preserve the directory structure, save an additional empty file at
|
||
|
# the root of the working directory. GitHub action uses the least common
|
||
|
# ancestor of all the search paths as the root directory for artefacts.
|
||
|
name: Save artefacts
|
||
|
inputs:
|
||
|
directory:
|
||
|
type: string
|
||
|
description: Path of the directory to save
|
||
|
runs:
|
||
|
using: composite
|
||
|
steps:
|
||
|
- run: touch .keep
|
||
|
shell: bash
|
||
|
- uses: actions/upload-artifact@v3
|
||
|
with:
|
||
|
path: |
|
||
|
${{ inputs.directory }}
|
||
|
.keep
|