v1.4.0 #6
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Change Logs | |
on: | |
release: | |
types: [ released ] | |
jobs: | |
latest-changes: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
ref: ${{ github.event.release.target_commitish }} | |
- name: Extract release date from git tag | |
run: | | |
echo "date=$(git log -1 --date=short --format=%ad '${{ github.event.release.tag_name }}')" >> $GITHUB_OUTPUT; | |
- name: Update Changelog | |
uses: stefanzweifel/changelog-updater-action@v1 | |
with: | |
latest-version: ${{ github.event.release.tag_name }} | |
release-notes: ${{ github.event.release.body }} | |
path-to-changelog: docs/changelog.md | |
- name: Commit updated CHANGELOG | |
uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
branch: ${{ github.event.release.target_commitish }} | |
commit_message: 📝 Update release notes | |
file_pattern: docs/changelog.md |