-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathaction.yml
184 lines (184 loc) · 6.65 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
name: "Git Info Action"
description: "Git insights such as latest branch & commit & tag information, ticket number detection, breaking changes..."
inputs:
work-dir:
description: "work dir"
required: false
default: "."
ignore-files:
description: 'regex list to ignore files (comma separated) e.g. "/\.txt$/, /\.doc$/"'
required: false
default: "null"
branch-fallback:
description: "fallback if no branch_default could be found"
required: false
default: "main"
tag-fallback:
description: "fallback if no tag could be found"
required: false
default: "null"
tag-match-pattern:
description: "tag match pattern"
required: false
default: ""
fallback-commit-type:
description: "fallback for commits without type (Conventional Commits)"
required: false
default: ""
fallback-commit-scope:
description: "fallback for commits without scope (Conventional Commits)"
required: false
default: ""
commit-msg-with-footer:
description: "include footer from commit messages (Conventional Commits)"
required: false
default: "true"
null-to-empty:
description: "converts null to empty string"
required: false
default: "true"
max-changelog-length:
description: "adds a limit to all change logs (useful when using e.g. twitter)"
required: false
default: ""
outputs:
branch:
description: "current branch"
branch_default:
description: "default branch"
commits_ahead:
description: "branch commits that are not in the branch_default"
commits_behind:
description: "branch_default commits that are not in the branch"
is_default_branch:
description: "true if branch == branch_default"
has_changes:
description: "true if sha_latest != sha_latest_tag"
has_local_changes:
description: "true if there are changes on non committed files"
has_breaking_changes:
description: "true if a commit has a breaking change (Conventional Commits)"
sha_latest:
description: "sha from latest commit"
sha_latest_tag:
description: "sha from latest tag"
tag_latest:
description: "latest tag"
ticket_numbers:
description: "list of ticket numbers (Jira GitHub)"
commit_types:
description: "list of commit types (Conventional Commits)"
commit_scopes:
description: "list of commit scopes (Conventional Commits)"
change_log:
description: "Full changelog"
change_log_type_chore:
description: "Change Log for the type chore (Conventional Commits)"
change_log_type_feat:
description: "Change Log for the type feat (Conventional Commits)"
change_log_type_fix:
description: "Change Log for the type fix (Conventional Commits)"
change_log_type_ci:
description: "Change Log for the type ci (Conventional Commits)"
change_log_type_docs:
description: "Change Log for the type docs (Conventional Commits)"
change_log_type_style:
description: "Change Log for the type style (Conventional Commits)"
change_log_type_refactor:
description: "Change Log for the type refactor (Conventional Commits)"
change_log_type_perf:
description: "Change Log for the type perf (Conventional Commits)"
change_log_type_test:
description: "Change Log for the type test (Conventional Commits)"
change_log_type_revert:
description: "Change Log for the type revert (Conventional Commits)"
change_type:
description: "Change Type [major, minor, patch, rc] (Conventional Commits)"
file_changes:
description: "List of file changes (sha_latest <> sha_latest_tag)"
file_changes_local:
description: "List of local file changes"
x_language_list:
description: "a list of supported language for x_has_changes_<lang>"
context_ref:
description: "The git ref of the triggering event"
context_workflow_file:
description: "The workflow file where the triggering event occurred"
context_actor_id:
description: "The ID of the user or app that triggered the event"
context_actor_name:
description: "The name of the user or app that triggered the event"
context_actor_type:
description: "The type of the user or app that triggered the event"
context_sha:
description: "The git SHA of the commit that triggered the event"
context_event_name:
description: "The name of the event that triggered the workflow"
context_workflow_name:
description: "The name of the workflow that was triggered"
context_job_name:
description: "The name of the job that was triggered"
context_run_id:
description: "The ID of the workflow run that was triggered"
context_run_number:
description: "The number of the workflow run that was triggered"
event_name:
description: "The name of the event that triggered the workflow."
event_source:
description: "The source of the event that triggered the workflow."
var_with_default:
description: "The value of a variable with a default value."
var_should_be_set:
description: "The value of a variable that should be set by the user."
repo_id:
description: "The ID of the repository."
repo_size:
description: "The size of the repository."
repo_open_issues:
description: "The number of open issues in the repository."
repo_star_count:
description: "The number of stars the repository has."
is_repo_fork:
description: "Whether the repository is a fork."
is_repo_private:
description: "Whether the repository is private."
is_repo_archived:
description: "Whether the repository is archived."
is_repo_disabled:
description: "Whether the repository is disabled."
is_repo_template:
description: "Whether the repository is a template."
repo_visibility:
description: "The visibility of the repository."
repo_default_branch:
description: "The default branch of the repository."
repo_language:
description: "The language of the repository."
repo_name:
description: "The name of the repository."
repo_created_at:
description: "The creation date of the repository."
repo_updated_at:
description: "The last update date of the repository."
repo_html_url:
description: "The URL of the repository's HTML page."
repo_hooks_url:
description: "The URL of the repository's hooks."
repo_description:
description: "The description of the repository."
repo_license_key:
description: "The key of the repository's license."
repo_license_name:
description: "The name of the repository's license."
repo_owner_id:
description: "The ID of the repository's owner."
repo_owner_name:
description: "The name of the repository's owner."
repo_owner_type:
description: "The type of the repository's owner."
runs:
using: "node20"
main: "dist/index.js"
branding:
icon: file-text
color: purple