Skip to content

Commit 13fe489

Browse files
committed
chore: new changelog format via git-cliff
1 parent 70af361 commit 13fe489

File tree

5 files changed

+365
-184
lines changed

5 files changed

+365
-184
lines changed

Diff for: .github/workflows/nightly.yml

+12-1
Original file line numberDiff line numberDiff line change
@@ -194,11 +194,22 @@ jobs:
194194
for file in odoo-lsp-*/odoo-lsp-*; do
195195
openssl dgst -sha256 -r "$file" | awk '{print $1}' > "${file}.sha256";
196196
done
197+
- name: Setup git-cliff
198+
uses: taiki-e/install-action@v2
199+
with:
200+
tool: git-cliff
201+
- name: Generate release notes
202+
run: |
203+
if [[ '${{ needs.tag.outputs.tag }}' == 'nightly-'* ]]; then
204+
./scripts/nightly-changelog > ${{ github.workspace }}-CHANGELOG.txt
205+
else
206+
git cliff -l > ${{ github.workspace }}-CHANGELOG.txt
207+
fi
197208
- name: Release
198209
uses: softprops/action-gh-release@v1
199210
with:
200211
files: odoo-lsp-*/odoo-lsp-*
201212
name: ${{ inputs.release_name || 'nightly' }}
202213
tag_name: ${{ needs.tag.outputs.tag }}
203-
generate_release_notes: true
214+
body_path: ${{ github.workspace }}-CHANGELOG.txt
204215
prerelease: ${{ github.event_name != 'workflow_dispatch' || inputs.prerelease }}

Diff for: .github/workflows/test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
with:
5252
path: testing/.results.xml
5353
summary: true
54-
fail-on-empty: true
54+
fail-on-empty: false
5555
title: E2E Test Results
5656

5757
- name: Fail if unit tests failed

0 commit comments

Comments
 (0)