Skip to content

docs(ci): Change Changelog.md to see if it regenerates #33

docs(ci): Change Changelog.md to see if it regenerates

docs(ci): Change Changelog.md to see if it regenerates #33

Workflow file for this run

name: changelog
on:
push:
branches:
- ci
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- name: Checkout Code
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.head_ref }}
- name: Get previous tag
id: previousTag
run: |
name=$(git --no-pager tag --sort=creatordate --merged ${{ github.ref_name }} | tail -2 | head -1)
echo "previousTag: $name"
echo "previousTag=$name" >> $GITHUB_ENV
- name: Update CHANGELOG
id: changelog
uses: requarks/changelog-action@v1.9.0
with:
token: ${{ github.token }}
fromTag: ${{ github.ref_name }}
toTag: ${{ env.previousTag }}
writeToFile: true
excludeTypes: build,other,style
reverseOrder: true
- name: Commit CHANGELOG.md
uses: stefanzweifel/git-auto-commit-action@v5
if: steps.auto-commit-action.outputs.changes_detected == 'true'
with:
branch: ci
commit_message: 'docs: update CHANGELOG.md for ${{ github.ref_name }} [skip ci]'
file_pattern: CHANGELOG.md