shared-actions/upload-artifact/action.yml
Michael Seele ed2dcca9bb
All checks were successful
validate-shared-actions / validate-shared-actions (pull_request) Successful in 56s
Aikido Security PR Check / Aikido Security Scan (pull_request) Successful in 1m7s
feat: add download-artifact and upload-artifact actions with documentation
2026-05-22 09:55:02 +00:00

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 }}