chore: consolidated workflows 2b4c7799
Steve · 2026-02-21 12:10 2 file(s) · +26 −33
.github/workflows/changelog.yml (deleted) +0 −33
1 -
name: Update Changelog
2 -
3 -
on:
4 -
  release:
5 -
    types: [published]
6 -
7 -
jobs:
8 -
  changelog:
9 -
    runs-on: ubuntu-latest
10 -
    permissions:
11 -
      contents: write
12 -
    steps:
13 -
      - name: Check out repository
14 -
        uses: actions/checkout@v4
15 -
        with:
16 -
          fetch-depth: 0
17 -
18 -
      - name: Generate changelog
19 -
        uses: orhun/git-cliff-action@v4
20 -
        with:
21 -
          config: cliff.toml
22 -
          args: --verbose
23 -
        env:
24 -
          OUTPUT: CHANGELOG.md
25 -
          GITHUB_REPO: ${{ github.repository }}
26 -
27 -
      - name: Commit changelog
28 -
        run: |
29 -
          git config user.name "github-actions[bot]"
30 -
          git config user.email "github-actions[bot]@users.noreply.github.com"
31 -
          git add CHANGELOG.md
32 -
          git diff --staged --quiet || git commit -m "chore: update changelog"
33 -
          git push
.github/workflows/release.yml +26 −0
341 341
        with:
342 342
          persist-credentials: false
343 343
          submodules: recursive
344 +
  changelog:
345 +
    runs-on: ubuntu-latest
346 +
    permissions:
347 +
      contents: write
348 +
    steps:
349 +
      - name: Check out repository
350 +
        uses: actions/checkout@v4
351 +
        with:
352 +
          fetch-depth: 0
353 +
354 +
      - name: Generate changelog
355 +
        uses: orhun/git-cliff-action@v4
356 +
        with:
357 +
          config: cliff.toml
358 +
          args: --verbose
359 +
        env:
360 +
          OUTPUT: CHANGELOG.md
361 +
          GITHUB_REPO: ${{ github.repository }}
362 +
363 +
      - name: Commit changelog
364 +
        run: |
365 +
          git config user.name "github-actions[bot]"
366 +
          git config user.email "github-actions[bot]@users.noreply.github.com"
367 +
          git add CHANGELOG.md
368 +
          git diff --staged --quiet || git commit -m "chore: update changelog"
369 +
          git push