This GitHub Action automates the process of updating the changelog after a new release is built and published. It ensures that the changelog remains up to date with the latest changes in the repository.
The workflow is triggered automatically after the Build and Publish workflow is successfully completed.
- Triggered by:
- Completion of
2. Build and Publish
workflow.
- Completion of
This job updates the changelog after a new release.
- Runs on:
ubuntu-22.04
- Permissions:
contents: write
- Steps:
- Checkout the repository (with full history for changelog updates)
- Update the changelog using
./scripts/changelog.sh -c -p
- Commits and pushes changes using GitHub Actions bot
This workflow runs automatically when a new release is created. However, you can manually update the changelog by running the script locally:
./scripts/changelog.sh -c -p
GITHUB_TOKEN
: Used for authentication and committing changes.
changelog.sh
: Updates the changelog file.
- Ensure that
changelog.sh
is executable and correctly configured. - The workflow ensures that changelog updates occur only after a successful release build.
- The changes are committed and pushed automatically to the repository.
- If the workflow fails, ensure that
changelog.sh
is present and executable. - If there are permissions errors, verify that GitHub Actions has the required
contents: write
permission. - Check logs for any issues related to Git authentication or script execution.