forked from einaregilsson/build-number
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
26 lines (24 loc) · 813 Bytes
/
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
name: 'Build Number Generator'
description: 'Generate sequential build numbers for workflow runs'
author: 'James McKenzie'
runs:
using: 'node12'
main: 'lib/index.js'
inputs:
deleteOlderTags:
description: 'instruct the action to remove older tags after adding the latest'
required: false
default: false
token:
description: 'GitHub Token to create and delete refs (GITHUB_TOKEN)'
required: false # Not required when getting the stored build number for later jobs, only in the first jobs when it's generated
prefix:
description: 'Prefix for the build-number-<num> tag to make it unique if tracking multiple build numbers'
required: false
default: 'build-number-'
outputs:
build_number:
description: 'Generated build number'
branding:
icon: 'hash'
color: 'green'