Skip to content

Commit 14db2e8

Browse files
committed
Also include input paths in output
1 parent 5b1accf commit 14db2e8

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

README.md

+3
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ description:
3636
**Output**
3737
3838
```plaintext
39+
input_paths:
40+
description: 'The local paths to the input images that were uploaded.'
41+
example: '["./img1.png", "./img2.png"]'
3942
imgur_urls:
4043
description: 'The urls to the images as a JSON.stringified array.'
4144
example: '["https://i.imgur.com/j1KnFp1.png", "https://i.imgur.com/UfhRqDR.png"]'

action.yml

+2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ inputs:
1515
default: "Images uploaded by public-upload-to-imgur GitHub Action"
1616
required: false
1717
outputs:
18+
input paths:
19+
description: 'The local paths to the input images that were uploaded.'
1820
imgur_urls:
1921
description: 'The urls to the images as a JSON.stringified array.'
2022
markdown_urls:

src/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ async function main() {
2828
})
2929
)
3030

31+
core.setOutput("input_paths", JSON.stringify(img_paths))
3132
core.setOutput("imgur_urls", JSON.stringify(links))
3233
let markdown_urls = links.map(link => `![Imgur Images](${link})`)
3334
core.setOutput("markdown_urls", JSON.stringify(markdown_urls))

0 commit comments

Comments
 (0)