forked from alexanderschau/ipfs-pinning-action
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
53 lines (53 loc) · 1.74 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
45
46
47
48
49
50
51
52
53
name: 'IPFS All-in-One Publisher'
description: 'Pin and publish your folder to IPFS'
author: 'Piotr Węgrzyn <[email protected]>'
branding:
icon: 'upload-cloud'
color: 'orange'
inputs:
upload_path:
description: 'File/directory path to add to IPFS'
required: true
remote_service_name:
description: 'Name of pinning service'
required: false
remote_service_endpoint:
description: 'API URL of pinning service'
required: false
remote_service_key:
description: 'Key/access token to pinning service'
required: false
remote_background:
description: 'Pin to pinning service in the background'
required: false
default: true
remote_unpin_old_cid:
description: "Unpin from pinning service previous CID (works only with publishing)"
required: false
default: false
publish_key_name:
description: 'IPNS key name'
required: false
publish_key_value:
description: 'IPNS key value (pem-pkcs8-cleartext format)'
required: false
propagate_time:
description: 'Additional time for IPFS daemon to propagate changes in network'
required: false
default: 0
outputs:
cid:
description: 'IPFS Content ID of the pinned file/directory'
runs:
using: 'docker'
image: 'Dockerfile'
env:
UPLOAD_PATH: ${{ inputs.upload_path }} # required
REMOTE_SERVICE_NAME: ${{ inputs.remote_service_name }}
REMOTE_SERVICE_ENDPOINT: ${{ inputs.remote_service_endpoint }}
REMOTE_SERVICE_KEY: ${{ inputs.remote_service_key }}
REMOTE_BACKGROUND: ${{ inputs.remote_background }}
REMOTE_UNPIN_OLD_CID: ${{ inputs.remote_unpin_old_cid }}
PUBLISH_KEY_NAME: ${{ inputs.publish_key_name }}
PUBLISH_KEY_VALUE: ${{ inputs.publish_key_value }}
PROPAGATE_TIME: ${{ inputs.propagate_time }}