-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathaction.yml
34 lines (34 loc) · 1.13 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
name: 'Upload image'
description: 'Uploads an image and returns a url to it.'
branding:
icon: 'upload'
color: 'gray-dark'
inputs:
path:
description: 'Path(s) to the image(s) to upload.'
required: true
uploadMethod:
description: 'Where to upload images.'
required: true
default:
apiKey:
description: 'API if the upload method needs it.'
required: true
default: ''
expiration:
description: 'How long the image(s) should be available is seconds.'
required: false
outputs:
url:
description: 'A URL of the uploaded image. If multiple images are uploaded, each URL is returned in a new line.'
urls:
description: 'Same as url, but as an array of URLs of the uploaded images.'
expiration:
description: 'When the image expires in seconds. If multiple images are uploaded, each expiration is returned in a new line.'
delete_url:
description: 'A URL to delete the image. If multiple images are uploaded, each URL is returned in a new line.'
delete_urls:
description: 'Same as delete_url, but as an array of URLs to delete the images'
runs:
using: 'node20'
main: 'dist/index.js'