Skip to content

Commit

Permalink
chore(release): WIP: Test change
Browse files Browse the repository at this point in the history
  • Loading branch information
alcroito committed Apr 29, 2024
1 parent 48a7dcd commit c26b4f2
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
14 changes: 13 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,25 @@ jobs:

- name: Create artifacts directory
run: mkdir artifacts

- name: Detect if test_release branch
shell: bash
if: github.ref == 'refs/heads/test_release'
run: |
echo "IS_TEST_RELEASE=1" >> $GITHUB_ENV
- name: Detect if not test_release branch
shell: bash
if: github.ref != 'refs/heads/test_release'
run: |
echo "IS_TEST_RELEASE=0" >> $GITHUB_ENV
- name: "Build Changelog"
id: build_changelog
uses: orhun/git-cliff-action@main
with:
config: cliff.toml
args: -vv --latest --no-exec
args: -v --no-exec
env:
OUTPUT: GITHUB_RELEASE_CHANGELOG.md

Expand Down
3 changes: 2 additions & 1 deletion cliff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
# Configuration options are organized into tables and keys.
# See documentation for more information on available options.


[changelog]
# changelog header
header = """
Expand All @@ -24,7 +25,7 @@ body = """
{{ commit.message | upper_first }} - \
([{{ commit.id | truncate(length=7, end="") }}]({{ self::remote_url() }}/commit/{{ commit.id }}))\
{% if commit.github.username %} by \
([@{{ commit.github.username }}](https://github.com//{{ commit.github.username }}))\
([@{{ commit.github.username }}](https://github.com/{{ commit.github.username }}))\
{%- endif -%}\
{% if commit.github.pr_number %} in \
[#{{ commit.github.pr_number }}]({{ self::remote_url() }}/pull/{{ commit.github.pr_number }})\
Expand Down

0 comments on commit c26b4f2

Please sign in to comment.