38 lines
1.2 KiB
YAML
38 lines
1.2 KiB
YAML
name: github-download-previous-artifacts
|
|
description: "Download artifacts from a previous Workflow run."
|
|
inputs:
|
|
workflowPattern:
|
|
description: "Pattern of the workflow name to match."
|
|
required: true
|
|
artifactPattern:
|
|
description: "Pattern of the artifacts to match."
|
|
required: true
|
|
default: "*"
|
|
artifactName:
|
|
description: "Name of the artifact when it is downloaded. If not specified, the artifact will be named what the artifact is named."
|
|
required: false
|
|
default: ""
|
|
unzipDir:
|
|
description: "Directory to unzip the artifacts into. If not specified, the artifacts will not be unzipped."
|
|
required: false
|
|
default: ""
|
|
# outputs:
|
|
# query:
|
|
# description: "The query result."
|
|
# value: ${{ steps.query.outputs.console }}
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
- run: |
|
|
ls -al "${{ github.action_path }}"
|
|
shell: bash
|
|
- name: "Download artifacts."
|
|
uses: act/common/dotnet/dotnet-10@master
|
|
env:
|
|
WORKFLOW_FILENAME: ${{ inputs.workflowPattern }}
|
|
ARTIFACT_NAME: ${{ inputs.filePattern }}
|
|
ARTIFACT_FILENAME: ${{ inputs.artifactName }}
|
|
UNZIP_DIR: ${{ inputs.unzipDir }}
|
|
with:
|
|
command: run "${{ github.action_path }}/download-previous-artifacts.cs "${{ toJSON(inputs) }}"
|