-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaction.yml
49 lines (49 loc) · 1.17 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
name: 'dotnet-feeder - feed'
description: 'Writing posts from a json feed to a markdown file, use for automatically updating your Profile readme.'
branding:
icon: rss
color: orange
inputs:
feed:
description:
'The URL of the json feed'
files:
description:
'File(s) you wish to update. Separate multiple by ;'
template:
description:
'The post template'
required: false
default: '- [{title}]({url})'
count:
description:
'Number of posts to write to the file'
required: false
default: 5
tag:
description:
'Tag to replace, data between <!-- start {tag} --> and <!-- end {tag} --> will be replaced.'
required: false
default: 'posts'
extra_args:
description:
'Extra arguments'
required: false
default: ''
outputs:
files-updated:
description:
'Wether or not there where files updated, to conditionally trigger a commit'
runs:
using: 'docker'
image: 'docker://ghcr.io/svrooij/dotnet-feeder:latest'
args:
- 'feed'
- ${{ inputs.feed }}
- ${{ inputs.files }}
- '--count'
- ${{ inputs.count }}
- '--tag'
- ${{ inputs.tag }}
- '--template'
- ${{ inputs.template }}