-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
51 lines (49 loc) · 1.38 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
name: 'Date Last CI'
description: 'Gets the date of the last time the CI was passed. Inspired in of https://github.com/Schneegans/dynamic-badges-action'
author: 'Juan Carlos Manzanares Serrano'
branding:
icon: 'activity'
color: 'green'
inputs:
gist_id:
description: 'Gist ID of the repository where your file is located'
requred: true
gist_token:
description: 'Token generated on github with access to gist'
required: true
gist_filename:
description: 'Name of the file hosted in gist'
required: false
default: date.json
color:
description: 'Color for the badge'
required: false
default: 'blue'
show_year:
description: 'The year is displayed in the date message'
required: false
default: true
show_month:
description: 'The month is displayed in the date message'
required: false
default: true
show_day:
description: 'The day number is displayed in the date message'
required: false
default: true
show_hour:
description: 'The hour with minutes is displayed in the date message'
required: false
default: true
runs:
using: "docker"
image: "Dockerfile"
args:
- ${{ inputs.color }}
- ${{ inputs.show_year }}
- ${{ inputs.show_month }}
- ${{ inputs.show_day }}
- ${{ inputs.show_hour }}
- ${{ inputs.gist_id }}
- ${{ inputs.gist_token }}
- ${{ inputs.gist_filename }}