Skip to content

Update Changelog

Update Changelog #2

name: 'Update Changelog'
on:
pull_request:
types: [closed]
release:
types: [published]
permissions:
contents: write
jobs:
push-updated-changelog:
if: github.event.pull_request.merged == true || github.event_name == 'release'
name: "Update Changelog"
runs-on: ubuntu-latest
steps:
- name: 'Generate Token'
uses: actions/create-github-app-token@v1
id: token-generator
with:
app-id: ${{ secrets.TOKEN_GENERATOR_APP_ID }}
private-key: ${{ secrets.TOKEN_GENERATOR_PRIVATE_KEY }}
- name: 'Checkout Branch'
uses: actions/checkout@v4
with:
ref: master
fetch-depth: 0
token: ${{ steps.token-generator.outputs.token }}
- name: 'Initialize Environment'
uses: ./.github/actions/initialize-environment
- name: 'Generate Changelog'
run: |
make generate_changelog
- name: 'Push Changes'
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: 'Update Changelog !automated'
branch: master