Skip to content

Commit d5721ed

Browse files
ci: fix publish workflow
1 parent 13329a7 commit d5721ed

3 files changed

Lines changed: 9 additions & 5 deletions

File tree

.github/cliff.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,23 @@ body = """
44
## Core
55
66
{% for commit in commits|filter(attribute="group", value = "core") %}
7-
- {{ commit.message }}
7+
- {{ commit.message|split(pat="\n")|first }}
88
{% else %}
99
N/A
1010
{% endfor %}
1111
1212
## Serialization
1313
1414
{% for commit in commits|filter(attribute="group", value = "serialization") %}
15-
- {{ commit.message }}
15+
- {{ commit.message|split(pat="\n")|first }}
1616
{% else %}
1717
N/A
1818
{% endfor %}
1919
2020
## Misc
2121
2222
{% for commit in commits|filter(attribute="group", value = "misc") %}
23-
- {{ commit.message }}
23+
- {{ commit.message|split(pat="\n")|first }}
2424
{% else %}
2525
N/A
2626
{% endfor %}

.github/workflows/publish.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,15 +137,16 @@ jobs:
137137
fetch-depth: 0
138138
- name: Generate changelog
139139
uses: orhun/git-cliff-action@v3
140+
id: cliff
140141
with:
141142
args: -v --current
142143
config: .github/cliff.toml
143144
env:
145+
OUTPUT: changes.md
144146
GITHUB_TOKEN: ${{github.token}}
145147
GITHUB_REPO: ${{github.repository}}
146-
OUTPUT: ${{runner.temp}}/changes.md
147148
- name: Create release
148-
run: gh release create $GITHUB_REF_NAME -F $RUNNER_TEMP/changes.md
149+
run: gh release create $GITHUB_REF_NAME -F '${{steps.cliff.outputs.changelog}}'
149150
env:
150151
GH_TOKEN: ${{github.token}}
151152

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ out/
2121
!.idea/ktlint-plugin.xml
2222
!.idea/vcs.xml
2323

24+
### git-cliff ###
25+
changes.md
26+
2427
### Vim ###
2528
[._]*.s[a-v][a-z]
2629
[._]*.sw[a-p]

0 commit comments

Comments
 (0)