mirror of
https://github.com/logos-storage/nim-serde.git
synced 2026-01-02 13:43:06 +00:00
42 lines
1.0 KiB
YAML
42 lines
1.0 KiB
YAML
name: changelog
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
release:
|
|
types: [published]
|
|
|
|
|
|
jobs:
|
|
changelog:
|
|
name: Generate changelog
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: write
|
|
steps:
|
|
- name: Create Token
|
|
id: create_token
|
|
uses: tibdex/github-app-token@v2
|
|
with:
|
|
app_id: ${{ secrets.APP_ID }}
|
|
private_key: ${{ secrets.APP_PRIVATE_KEY }}
|
|
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: "✏️ Generate release changelog"
|
|
uses: heinrichreimer/action-github-changelog-generator@v2.3
|
|
with:
|
|
token: ${{ steps.create_token.outputs.token }}
|
|
|
|
- name: Commit CHANGELOG.md
|
|
uses: planetscale/ghcommit-action@v0.1.33
|
|
with:
|
|
repo: ${{ github.repository }}
|
|
branch: master
|
|
commit_message: 'docs: update CHANGELOG.md for ${{ github.ref_name }} [skip ci]'
|
|
file_pattern: CHANGELOG.md
|
|
env:
|
|
GITHUB_TOKEN: ${{ steps.create_token.outputs.token }}
|