generated from jacobtomlinson/python-container-action
-
Notifications
You must be signed in to change notification settings - Fork 1
/
action.yml
44 lines (43 loc) · 1.25 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: 'Artifact downloader'
description: 'download an artifact'
author: 'Bettermarks GmbH'
inputs:
repo:
description: 'The repository to download from'
token:
description: 'The personal access token'
artifact_name:
description: 'The name of the artifact'
rename:
description: 'An alternative name for the downloaded artifact'
wait_seconds:
description: 'Wait for the artifact to appear'
outputs:
commit:
description: 'The commit sha corresponding to the artifact'
value: ${{ steps.main.outputs.commit }}
success:
description: 'Indicates success of the action'
value: ${{ steps.main.outputs.success }}
error:
description: 'Indicates if there was an error'
value: ${{ steps.main.outputs.error }}
runs:
using: 'composite'
steps:
- name: install requirements
shell: bash
run: pip install requests
- name: download artifact
id: main
shell: bash
env:
INPUT_TOKEN: ${{ inputs.token }}
INPUT_ARTIFACT_NAME: ${{ inputs.artifact_name }}
INPUT_RENAME: ${{ inputs.rename }}
INPUT_REPO: ${{ inputs.repo }}
INPUT_WAIT_SECONDS: ${{ inputs.wait_seconds }}
run: python "${{ github.action_path }}/main.py"
branding:
color: 'yellow'
icon: 'download'