@liblaf/actions 1.3.9 → 1.3.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/changelog/cliff.toml +136 -0
- package/dist/mega-linter/action.yaml +66 -0
- package/dist/mega-linter/post.sh +13 -0
- package/package.json +1 -1
- /package/dist/{auth → auth/action.yaml} +0 -0
- /package/dist/{authenticate → authenticate/action.yaml} +0 -0
- /package/dist/{changelog → changelog/action.yaml} +0 -0
- /package/dist/{commit → commit/action.yaml} +0 -0
- /package/dist/{copier-update → copier-update/action.yaml} +0 -0
- /package/dist/{install → install/action.yaml} +0 -0
- /package/dist/{mega-linter → mega-linter/pre.sh} +0 -0
- /package/dist/{pre → pre/action.yaml} +0 -0
- /package/dist/{setup-python → setup-python/action.yaml} +0 -0
- /package/dist/{skip-duplicate → skip-duplicate/action.yaml} +0 -0
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
# ref: <https://git-cliff.org/docs/configuration/>
|
|
2
|
+
|
|
3
|
+
[bump]
|
|
4
|
+
features_always_bump_minor = false
|
|
5
|
+
breaking_always_bump_major = false
|
|
6
|
+
initial_tag = "0.1.0"
|
|
7
|
+
|
|
8
|
+
[changelog]
|
|
9
|
+
# ref: <https://git-cliff.org/docs/templating/examples/>
|
|
10
|
+
# ref: <https://github.com/orhun/git-cliff/blob/main/cliff.toml>
|
|
11
|
+
# ref: <https://release-plz.dev/docs/changelog/examples>
|
|
12
|
+
header = """
|
|
13
|
+
<!-- This file is @generated by <https://github.com/liblaf/actions-src/blob/main/actions/changelog/cliff.toml>. -->
|
|
14
|
+
# Changelog
|
|
15
|
+
|
|
16
|
+
All notable changes to this project will be documented in this file.
|
|
17
|
+
|
|
18
|
+
The format is based on [Conventional Changelog](https://github.com/conventional-changelog/conventional-changelog-config-spec/blob/master/versions/2.2.0/README.md),
|
|
19
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
20
|
+
"""
|
|
21
|
+
body = """
|
|
22
|
+
{%- macro remote_url() -%}
|
|
23
|
+
https://github.com/{{ remote.github.owner }}/{{ remote.github.repo }}
|
|
24
|
+
{%- endmacro -%}
|
|
25
|
+
|
|
26
|
+
{%- macro pull(p) -%}
|
|
27
|
+
[#{{ p }}]({{ self::remote_url() }}/pull/{{ p }})
|
|
28
|
+
{%- endmacro -%}
|
|
29
|
+
|
|
30
|
+
{%- macro user(u) -%}
|
|
31
|
+
{%- if u is ending_with("[bot]") -%}
|
|
32
|
+
{%- set botname = u | trim_end_matches(pat="[bot]") -%}
|
|
33
|
+
[@{{ u }}](https://github.com/apps/{{ botname }})
|
|
34
|
+
{%- else -%}
|
|
35
|
+
[@{{ u }}](https://github.com/{{ u }})
|
|
36
|
+
{%- endif -%}
|
|
37
|
+
{%- endmacro user -%}
|
|
38
|
+
|
|
39
|
+
{%- macro print_commit(c) -%}
|
|
40
|
+
- {% if c.scope %}**{{ c.scope }}:** {% endif -%}\
|
|
41
|
+
{{ c.message }} - \
|
|
42
|
+
[{{ c.id | truncate(length=7, end="") }}]({{ self::remote_url() }}/commit/{{ c.id }})
|
|
43
|
+
{%- if c.remote.username %} by {{ self::user(u=c.remote.username) }}{% endif -%}
|
|
44
|
+
{%- if c.remote.pr_number %} in {{ self::pull(p=c.remote.pr_number) }}{% endif -%}
|
|
45
|
+
{%- endmacro -%}
|
|
46
|
+
|
|
47
|
+
{%- macro print_breaking(c) -%}
|
|
48
|
+
- {% if c.scope %}**({{ c.scope }})** {% endif -%}\
|
|
49
|
+
{%- if c.breaking_description -%}
|
|
50
|
+
{{ c.breaking_description }}
|
|
51
|
+
{%- else -%}
|
|
52
|
+
{{ c.message }}
|
|
53
|
+
{%- endif %} - \
|
|
54
|
+
[{{ c.id | truncate(length=7, end="") }}]({{ self::remote_url() }}/commit/{{ c.id }})\
|
|
55
|
+
{%- if c.remote.username %} by {{ self::user(u=c.remote.username) }}{% endif -%}\
|
|
56
|
+
{%- if c.remote.pr_number %} in {{ self::pull(p=c.remote.pr_number) }}{% endif -%}
|
|
57
|
+
{%- endmacro -%}
|
|
58
|
+
|
|
59
|
+
{%- if version -%}
|
|
60
|
+
## [{{ version | trim_start_matches(pat="v") }}]({{ self::remote_url() }}/releases/tag/{{ version }}) - {{ timestamp | date(format="%Y-%m-%d") }}
|
|
61
|
+
{% else -%}
|
|
62
|
+
## [Unreleased]
|
|
63
|
+
{% endif -%}
|
|
64
|
+
|
|
65
|
+
{%- if commits | filter(attribute="breaking", value=true) | length > 0 -%}
|
|
66
|
+
### 💥 BREAKING CHANGES
|
|
67
|
+
{% for commit in commits | filter(attribute="breaking", value=true) -%}
|
|
68
|
+
{{ self::print_breaking(c=commit) }}
|
|
69
|
+
{% endfor -%}
|
|
70
|
+
{%- endif -%}
|
|
71
|
+
|
|
72
|
+
{%- for group, commits in commits | group_by(attribute="group") -%}
|
|
73
|
+
### {{ group | striptags | trim | upper_first }}
|
|
74
|
+
{% for commit in commits | filter(attribute="scope") | sort(attribute="scope") -%}
|
|
75
|
+
{{ self::print_commit(c=commit) }}
|
|
76
|
+
{% endfor -%}
|
|
77
|
+
{%- for commit in commits -%}
|
|
78
|
+
{%- if not commit.scope -%}
|
|
79
|
+
{{ self::print_commit(c=commit) }}
|
|
80
|
+
{% endif -%}
|
|
81
|
+
{%- endfor -%}
|
|
82
|
+
{%- endfor -%}
|
|
83
|
+
|
|
84
|
+
{%- if github -%}
|
|
85
|
+
{%- if github.contributors | length > 0 -%}
|
|
86
|
+
### ❤️ Contributors
|
|
87
|
+
{% for contributor in github.contributors -%}
|
|
88
|
+
{%- if contributor.is_first_time -%}
|
|
89
|
+
- {{ self::user(u=contributor.username) }} made their first contribution
|
|
90
|
+
{%- if contributor.pr_number %} in {{ self::pull(p=contributor.pr_number) }}{% endif %}
|
|
91
|
+
{% else -%}
|
|
92
|
+
- {{ self::user(u=contributor.username) }}
|
|
93
|
+
{% endif -%}
|
|
94
|
+
{%- endfor -%}
|
|
95
|
+
{%- endif -%}
|
|
96
|
+
{%- endif -%}
|
|
97
|
+
"""
|
|
98
|
+
footer = ""
|
|
99
|
+
trim = true
|
|
100
|
+
render_always = true
|
|
101
|
+
|
|
102
|
+
[git]
|
|
103
|
+
conventional_commits = true
|
|
104
|
+
filter_unconventional = true
|
|
105
|
+
split_commits = false
|
|
106
|
+
commit_preprocessors = [
|
|
107
|
+
# ref: <https://git-cliff.org/docs/tips-and-tricks#remove-gitmoji>
|
|
108
|
+
# Remove gitmoji, both actual UTF emoji and :emoji:
|
|
109
|
+
{ pattern = '^ *(:\w+:|[\p{Emoji_Presentation}\p{Extended_Pictographic}](?:\u{FE0F})?\u{200D}?) *', replace = "" },
|
|
110
|
+
]
|
|
111
|
+
commit_parsers = [
|
|
112
|
+
# ref: <https://github.com/liblaf/copier-release/blob/main/template/.config/release-please/config.json.jinja>
|
|
113
|
+
# { message = '^(?<type>\w+)(\((?<scope>\w+)\))?(?<breaking>!):', group = "<!-- 00 -->💥 BREAKING CHANGES" },
|
|
114
|
+
# { message = "BREAKING CHANGE", group = "<!-- 00 -->💥 BREAKING CHANGES" },
|
|
115
|
+
{ message = "^chore", group = "🎫 Chores", skip = true },
|
|
116
|
+
{ message = "pre-commit autoupdate", skip = true },
|
|
117
|
+
{ message = "sync with (repo|repository) template", skip = true },
|
|
118
|
+
{ message = "sync with template (repo|repository)", skip = true },
|
|
119
|
+
{ message = "update pre-commit hooks", skip = true },
|
|
120
|
+
# { message = '^fix\((?<scope>deps(-dev)?)\):', group = "<!-- 25 -->⬆️ Dependencies" },
|
|
121
|
+
{ message = "^feat", group = "<!-- 10 -->✨ Features" },
|
|
122
|
+
{ message = "^fix", group = "<!-- 20 -->🐛 Bug Fixes" },
|
|
123
|
+
{ message = "^docs", group = "<!-- 30 -->📝 Documentation" },
|
|
124
|
+
{ message = "^style", group = "<!-- 40 -->💄 Styles" },
|
|
125
|
+
{ message = "^refactor", group = "<!-- 50 -->♻ Code Refactoring" },
|
|
126
|
+
{ message = "^perf", group = "<!-- 60 -->⚡️ Performance Improvements" },
|
|
127
|
+
{ message = "^test", group = "<!-- 70 -->✅ Tests" },
|
|
128
|
+
{ message = "^build", group = "<!-- 80 -->🛠 Builds" },
|
|
129
|
+
{ message = "^ci", group = "<!-- 90 -->⚙️ Continuous Integration" },
|
|
130
|
+
{ message = "^revert", group = "<!-- 95 -->⏪️ Reverts" },
|
|
131
|
+
]
|
|
132
|
+
protect_breaking_commits = true
|
|
133
|
+
filter_commits = true
|
|
134
|
+
tag_pattern = "v[0-9].*"
|
|
135
|
+
topo_order = true
|
|
136
|
+
topo_order_commits = true
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
# yaml-language-server: $schema=https://json.schemastore.org/github-action.json
|
|
2
|
+
# ref: <https://github.com/oxsecurity/megalinter/blob/main/mega-linter-runner/generators/mega-linter/templates/mega-linter.yml>
|
|
3
|
+
# ref: <https://megalinter.io>
|
|
4
|
+
|
|
5
|
+
name: MegaLinter
|
|
6
|
+
|
|
7
|
+
author: liblaf
|
|
8
|
+
|
|
9
|
+
description: MegaLinter
|
|
10
|
+
|
|
11
|
+
inputs:
|
|
12
|
+
token:
|
|
13
|
+
description: GitHub Token
|
|
14
|
+
required: true
|
|
15
|
+
default: ${{ github.token }}
|
|
16
|
+
|
|
17
|
+
# Reporters
|
|
18
|
+
github-status-reporter:
|
|
19
|
+
description: GitHub Status Reporter
|
|
20
|
+
required: true
|
|
21
|
+
default: "false"
|
|
22
|
+
markdown-summary-reporter:
|
|
23
|
+
description: Markdown Summary Reporter
|
|
24
|
+
required: true
|
|
25
|
+
default: "true"
|
|
26
|
+
|
|
27
|
+
outputs:
|
|
28
|
+
has-updated-sources:
|
|
29
|
+
description: 0 if no source file has been updated, 1 if source files has been updated
|
|
30
|
+
value: ${{ steps.lint.outputs.has_updated_sources }}
|
|
31
|
+
|
|
32
|
+
runs:
|
|
33
|
+
using: composite
|
|
34
|
+
steps:
|
|
35
|
+
- name: Checkout Linter Rules
|
|
36
|
+
uses: actions/checkout@v6
|
|
37
|
+
with:
|
|
38
|
+
repository: ${{ github.repository_owner }}/.github
|
|
39
|
+
token: ${{ inputs.token }}
|
|
40
|
+
path: tmp.6NE8UxMvCk
|
|
41
|
+
sparse-checkout: linters
|
|
42
|
+
- name: Pre
|
|
43
|
+
run: bash '${{ github.action_path }}/pre.sh'
|
|
44
|
+
shell: bash
|
|
45
|
+
- id: lint
|
|
46
|
+
name: MegaLinter
|
|
47
|
+
uses: liblaf/megalinter-custom-flavor-all@v9
|
|
48
|
+
env:
|
|
49
|
+
GITHUB_TOKEN: ${{ inputs.token }}
|
|
50
|
+
# ref: <https://megalinter.io/latest/config-variables/>
|
|
51
|
+
# Reporters
|
|
52
|
+
GITHUB_STATUS_REPORTER: ${{ inputs.github-status-reporter }}
|
|
53
|
+
MARKDOWN_SUMMARY_REPORTER: ${{ inputs.markdown-summary-reporter }}
|
|
54
|
+
- if: success() || failure()
|
|
55
|
+
name: Post
|
|
56
|
+
run: bash '${{ github.action_path }}/post.sh'
|
|
57
|
+
shell: bash
|
|
58
|
+
- if: success() || failure()
|
|
59
|
+
name: Clean Linter Rules
|
|
60
|
+
run: sudo rm --force --recursive 'tmp.6NE8UxMvCk'
|
|
61
|
+
shell: bash
|
|
62
|
+
# - if: success() || failure()
|
|
63
|
+
# name: Prepare Commit
|
|
64
|
+
# run: sudo chown --changes --recursive "$UID" '.git/'
|
|
65
|
+
# shell: bash
|
|
66
|
+
# continue-on-error: true
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
set -o errexit
|
|
3
|
+
set -o nounset
|
|
4
|
+
set -o pipefail
|
|
5
|
+
|
|
6
|
+
while read -r filename; do
|
|
7
|
+
rm --force --verbose "$filename"
|
|
8
|
+
done < "$RUNNER_TEMP/missing-linter-files.list"
|
|
9
|
+
|
|
10
|
+
files=('.cspellcache')
|
|
11
|
+
for file in "${files[@]}"; do
|
|
12
|
+
rm --force --recursive --verbose "$file"
|
|
13
|
+
done
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|