Skip to content

Commit

Permalink
ci: change cliff config (#588)
Browse files Browse the repository at this point in the history
  • Loading branch information
Itsusinn authored Sep 12, 2024
1 parent 09dabbc commit 5e7dc33
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
10 changes: 4 additions & 6 deletions cliff.toml → .github/cliff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ body = """
{% for group, commits in commits | group_by(attribute="group") %}
### {{ group | striptags | trim | upper_first }}
{% for commit in commits %}
{% if commit.github.pr_labels is containing("dependencies") %}
{% continue %}
{% endif %}
- {% if commit.scope %}*({{ commit.scope }})* {% endif %}\
{% if commit.breaking %}[**breaking**] {% endif %}\
{{ commit.message | upper_first }}\
Expand Down Expand Up @@ -63,13 +60,14 @@ commit_parsers = [
{ message = "^refactor", group = "<!-- 2 -->🚜 Refactor" },
{ message = "^style", group = "<!-- 5 -->🎨 Styling" },
{ message = "^test", group = "<!-- 6 -->🧪 Testing" },
{ message = "^build", group = "<!-- 7 -->🛠️ Builds" },
{ message = "^chore\\(release\\): prepare for", skip = true },
{ message = "^chore\\(deps.*\\)", skip = true },
{ message = "^chore\\(pr\\)", skip = true },
{ message = "^chore\\(pull\\)", skip = true },
{ message = "^chore|^ci", group = "<!-- 7 -->⚙️ Miscellaneous Tasks" },
{ body = ".*security", group = "<!-- 8 -->🛡️ Security" },
{ message = "^revert", group = "<!-- 9 -->◀️ Revert" },
{ message = "^chore|^ci", group = "<!-- 8 -->⚙️ Miscellaneous Tasks" },
{ body = ".*security", group = "<!-- 9 -->🛡️ Security" },
{ message = "^revert", group = "<!-- 10 -->◀️ Revert" },
]
# filter out the commits that are not matched by commit parsers
filter_commits = false
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -245,14 +245,15 @@ jobs:

release:
name: Release

if: github.event_name != 'pull_request'
needs: [ compile ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true

- name: Merge binaries
uses: actions/upload-artifact/merge@v4
with:
Expand Down Expand Up @@ -280,12 +281,11 @@ jobs:
git tag latest
git push origin latest
- name: Generate a changelog
uses: orhun/git-cliff-action@main
id: git-cliff
with:
config: cliff.toml
config: .github/cliff.toml
args: --latest --strip header
env:
GITHUB_REPO: ${{ github.repository }}
Expand Down

0 comments on commit 5e7dc33

Please sign in to comment.