-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
25 lines (25 loc) · 988 Bytes
/
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
name: 'Objectstore Download'
description: 'Objectstore download action for DownToZero.cloud'
inputs:
api_key:
description: 'api key'
required: true
name:
description: 'name of the artifact'
required: true
object_key:
description: 'key of the objectstore, if empty name will be used'
required: false
runs:
using: "composite"
steps:
- name: downloading with object_key
if: ${{ inputs.object_key != '' }}
run: |
curl --compressed --max-time 300 -f -L 'https://objectstore.dtz.rocks/api/2022-11-28/obj/${{ inputs.object_key }}' -H 'accept: */*' -H 'X-API-KEY: ${{ inputs.api_key }}' -o ${{ inputs.name }}
shell: bash
- name: downloading with artifact name
if: ${{ inputs.object_key == '' }}
run: |
curl --compressed --max-time 300 -f -L 'https://objectstore.dtz.rocks/api/2022-11-28/obj/${{ inputs.name }}' -H 'accept: */*' -H 'X-API-KEY: ${{ inputs.api_key }}' -o ${{ inputs.name }}
shell: bash