This commit is contained in:
Louis Seubert 2026-02-12 21:18:29 +01:00
commit 03ebf47b9f
Signed by: louis9902
GPG key ID: 4B9DB28F826553BD
33 changed files with 1657 additions and 0 deletions

View file

@ -0,0 +1,13 @@
# artifact-pull
## Usage
```yml
uses: actions/core/module/artifact-pull@1.0.0
with:
name: artifact
pattern: |
build/**/*
!build/exclude-*
run-id: 0001
```

View file

@ -0,0 +1,38 @@
# SPDX-License-Identifier: EUPL-1.2
name: "Release"
description: "Pull build artifacts from the pipeline artifact storage"
author: "Louis Seubert"
inputs:
name:
required: true
description: >
The name of the artifact to download. The name is used to identify the artifact in the
artifact storage and must be unique within the repository.
pattern:
required: false
description: >
Paths of files which will be extracted from the artifact. Can be multiple lines with file system globbing
patterns. A line starting with ! will negate the pattern and act as exclude pattern. If this input is not provided,
all files of the artifact will be extracted.
run-id:
required: false
description: >
The id of the workflow run from which the artifact should be downloaded. If this input is not provided, the
artifact from the current workflow run will be downloaded.
default: "${{ github.run_id }}"
runs:
using: 'docker'
image: 'code.geekeey.de/actions/core:1.0.0'
args:
- '--server'
- '${{ github.server_url }}'
- '--token'
- '${{ github.token }}'
- 'artifact'
- 'pull'
- '--name'
- '${{ inputs.name }}'
- '--pattern'
- '${{ inputs.pattern }}'
- '--run-id'
- '${{ inputs.run-id }}'