generated from actions/javascript-action
-
Notifications
You must be signed in to change notification settings - Fork 1
/
action.yml
65 lines (47 loc) · 2.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# yaml-language-server: $schema=https://json.schemastore.org/github-action.json
# docs: https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions
name: GitHub slug
description: GitHub Action to expose slug values of branch/tag/version inside your GitHub workflow
inputs:
to-slug:
description: Slugify this value (string)
required: false
outputs:
slug:
description: A slugged version of "to-slug" input (string)
is-branch:
description: The workflow was triggered on a branch ("true"|"false")
is-tag:
description: The workflow was triggered on a tag ("true"|"false")
branch-name:
description: Current branch name ("feature/Fix-Something" for example; only for runs on a branch)
branch-name-slug:
description: A slugged version of "branch-name" ("feature-fix-something" for example; only for runs on a branch)
tag-name:
description: Current tag name ("Any-Tag" or "v1.2.3" for example; only for runs on tags)
tag-name-slug:
description: A slugged version of "tag-name" ("any-tag" or "v1.2.3" for example; only for runs on a tag)
commit-hash:
description: The commit SHA hash that triggered the workflow ("ffac537e6cbbf934b08745a378932722df287a53" for example)
commit-hash-short:
description: Short (7 first characters) commit SHA hash ("ffac537" for example)
version:
description: |
Cleared and slugged version value ("1.2.3-anything-else" for example). Prefix "v|ver|version" will be rejected.
Available for builds on branches and tags (always non-empty)
version-major:
description: Major version ("0" by default, "3" while build on tag/branch "3.02.998")
version-minor:
description: Minor version ("0" by default, "2" while build on tag/branch "3.02.998")
version-patch:
description: Patch version ("0" by default, "998" while build on tag/branch "3.02.998")
version-semantic:
description: |
Semantic version value in format "MAJOR.MINOR.PATCH(-tag-suffix-or-branch-name)". Prefix "v|ver|version" will
be rejected. Available for builds on branches and tags (always non-empty)
runs:
using: node20
main: dist/index.js
branding:
icon: tag
color: orange