chore: removed changelog workflow
c9619608
just gonna do local first
1 file(s) · +0 −50
just gonna do local first
| 1 | - | name: Changelog |
|
| 2 | - | ||
| 3 | - | # Regenerate CHANGELOG.md on every push to main. |
|
| 4 | - | # Tags (v*.*.*) are treated as release versions by git-cliff. |
|
| 5 | - | on: |
|
| 6 | - | push: |
|
| 7 | - | branches: |
|
| 8 | - | - main |
|
| 9 | - | tags-ignore: |
|
| 10 | - | - '**' |
|
| 11 | - | ||
| 12 | - | permissions: |
|
| 13 | - | contents: write |
|
| 14 | - | ||
| 15 | - | concurrency: |
|
| 16 | - | group: changelog-${{ github.ref }} |
|
| 17 | - | cancel-in-progress: true |
|
| 18 | - | ||
| 19 | - | jobs: |
|
| 20 | - | changelog: |
|
| 21 | - | runs-on: ubuntu-latest |
|
| 22 | - | # Avoid loops: skip the commit this workflow itself pushes. |
|
| 23 | - | if: github.actor != 'github-actions[bot]' |
|
| 24 | - | steps: |
|
| 25 | - | - name: Checkout |
|
| 26 | - | uses: actions/checkout@v6 |
|
| 27 | - | with: |
|
| 28 | - | fetch-depth: 0 |
|
| 29 | - | persist-credentials: true |
|
| 30 | - | ||
| 31 | - | - name: Generate changelog |
|
| 32 | - | uses: orhun/git-cliff-action@v4 |
|
| 33 | - | with: |
|
| 34 | - | config: cliff.toml |
|
| 35 | - | args: --verbose |
|
| 36 | - | env: |
|
| 37 | - | OUTPUT: CHANGELOG.md |
|
| 38 | - | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
|
| 39 | - | ||
| 40 | - | - name: Commit changelog |
|
| 41 | - | run: | |
|
| 42 | - | git config user.name "github-actions[bot]" |
|
| 43 | - | git config user.email "41898282+github-actions[bot]@users.noreply.github.com" |
|
| 44 | - | if git diff --quiet CHANGELOG.md; then |
|
| 45 | - | echo "No changelog changes." |
|
| 46 | - | exit 0 |
|
| 47 | - | fi |
|
| 48 | - | git add CHANGELOG.md |
|
| 49 | - | git commit -m "chore: update changelog [skip ci]" |
|
| 50 | - | git push |