-
Notifications
You must be signed in to change notification settings - Fork 9
35 lines (35 loc) · 1.12 KB
/
demo.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
name: Demo the action
on: push
jobs:
demo:
name: Demo the repo's capability
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Upload a single file
uses: devicons/public-upload-to-imgur@v2.2.2
id: step_1
with:
path: ./docs/example.PNG
client_id: ${{secrets.IMGUR_CLIENT_ID}}
- name: Upload a folder with multiple files
uses: devicons/public-upload-to-imgur@v2.2.2
id: step_2
with:
path: ./docs/
client_id: ${{secrets.IMGUR_CLIENT_ID}}
- name: Upload a glob pattern
uses: devicons/public-upload-to-imgur@v2.2.2
id: step_3
with:
path: ./*/*.png
client_id: ${{secrets.IMGUR_CLIENT_ID}}
- name: View results
env:
STEP_1_RESULT: ${{ fromJSON(steps.step_1.outputs.imgur_urls)[0] }} # view only one result
STEP_2_RESULT: ${{ steps.step_2.outputs.imgur_urls }}
STEP_3_RESULT: ${{ steps.step_3.outputs.markdown_urls }}
run: |
echo $STEP_1_RESULT
echo $STEP_2_RESULT
echo $STEP_3_RESULT