From c807ea55968751c47f3555038b0ba2ff264590db Mon Sep 17 00:00:00 2001 From: zhom <2717306+zhom@users.noreply.github.com> Date: Wed, 11 Jun 2025 03:23:16 +0400 Subject: [PATCH] build: add changelog generation on release --- .github/workflows/changelog.yml | 25 +++++++++++++++++++++++++ .vscode/settings.json | 1 + 2 files changed, 26 insertions(+) create mode 100644 .github/workflows/changelog.yml diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml new file mode 100644 index 0000000..e6eb4cc --- /dev/null +++ b/.github/workflows/changelog.yml @@ -0,0 +1,25 @@ +name: Generate changelog +on: + release: + types: [created, edited] + +jobs: + changelog: + name: Generate changelog + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Generate a changelog + uses: orhun/git-cliff-action@v4 + id: git-cliff + with: + args: --verbose + env: + OUTPUT: CHANGELOG.md + + - name: Print the changelog + run: cat "${{ steps.git-cliff.outputs.changelog }}" diff --git a/.vscode/settings.json b/.vscode/settings.json index 24c33e0..41c2b61 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -44,6 +44,7 @@ "nodecar", "ntlm", "objc", + "orhun", "osascript", "pixbuf", "plasmohq",