33 lines
1.1 KiB
YAML
33 lines
1.1 KiB
YAML
name: Schmalz Upload Artifact
|
|
description: >
|
|
Upload files as a Forgejo Actions artifact.
|
|
Thin wrapper around forgejo/upload-artifact, pinned to a specific SHA.
|
|
|
|
inputs:
|
|
name:
|
|
description: Artifact name
|
|
required: true
|
|
path:
|
|
description: File or directory path to upload
|
|
required: true
|
|
retention-days:
|
|
description: Number of days to retain the artifact
|
|
required: false
|
|
default: "30"
|
|
if-no-files-found:
|
|
description: Behaviour when no files are found — 'warn', 'error', or 'ignore'
|
|
required: false
|
|
default: warn
|
|
|
|
runs:
|
|
using: composite
|
|
steps:
|
|
# Pinned to commit SHA instead of a tag to prevent supply chain attacks.
|
|
# forgejo/upload-artifact v4 — https://code.forgejo.org/forgejo/upload-artifact/commits/tag/v4
|
|
- name: Upload artifact
|
|
uses: https://code.forgejo.org/forgejo/upload-artifact@16871d9e8cfcf27ff31822cac382bbb5450f1e1e
|
|
with:
|
|
name: ${{ inputs.name }}
|
|
path: ${{ inputs.path }}
|
|
retention-days: ${{ inputs.retention-days }}
|
|
if-no-files-found: ${{ inputs.if-no-files-found }}
|