Skip to content

apply some of clippy's suggestions #7

apply some of clippy's suggestions

apply some of clippy's suggestions #7

Workflow file for this run

name: Changelog
on:
workflow_dispatch:
push:
branches: [ "main" ]
pull_request:
jobs:
unreleased-changes:
name: Unreleased Changes
runs-on: ubuntu-22.04
outputs:
release_body: ${{ steps.git-cliff.outputs.content }}
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
fetch-depth: 0
- uses: orhun/git-cliff-action@main
id: git-cliff
with:
config: cliff.toml
args: -vv --unreleased --strip header
- name: Output Step Summary
run: |
echo "${{ steps.git-cliff.outputs.content }}" >> $GITHUB_STEP_SUMMARY
update-changelog:
name: Update Changelog
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-22.04
permissions:
contents: write
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
fetch-depth: 0
- uses: orhun/git-cliff-action@main
id: git-cliff
with:
config: cliff.toml
args: -vv
env:
OUTPUT: "CHANGELOG.md"
- name: Push Changes
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "chore: update changelog"
commit_author: "github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>"
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json