forked from proudust/gh-describe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
55 lines (51 loc) · 1.3 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
52
53
54
55
name: gh-describe
description: "Emulate `git describe --tags` for shallow clone repositories."
author: Proudust
inputs:
token:
description: Personal Access Token (PAT)
default: ${{ github.token }}
repo:
description: Target repository
default: ${{ github.repository }}
commit-ish:
description: >
Commit-ish object names to describe.
The branch or tag ref that triggered the workflow run.
default: ${{ github.ref }}
match:
description: Only consider tags matching the given glob pattern.
default: ""
exclude:
description: Do not consider tags matching the given glob pattern.
default: ""
default:
description: If the name is not found, use this value.
default: ""
outputs:
describe:
description: >
`git describe --tags`-like description.
ex) v1.0.4-14-g2414721
tag:
description: >
The most recent tag.
ex) v1.0.4
distance:
description: >
The number of additional commits from the most recent tag.
ex) 14
sha:
description: >
The object name for the commit itself.
ex) 2414721230345897234093645897124245324623
short-sha:
description: >
The object name for the commit itself.
ex) 2414721
runs:
using: node20
main: dist/actions.js
branding:
icon: tag
color: gray-dark