Change location of changelog.yml #1
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: Update Changelog | |
on: | |
pull_request: | |
types: | |
- closed # Trigger when a PR is closed | |
branches: | |
# Specify branches to track | |
- dev | |
- main | |
jobs: | |
update_changelog: | |
if: github.event.pull_request.merged == true # Only run if the PR was merged | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
# Generate changelog from merged PR metadata | |
- name: Generate Changelog | |
uses: mikepenz/release-changelog-builder-action@v2 | |
with: | |
configuration: .github/release-config.yml | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Commit and Push Changes | |
run: | | |
git config user.name "github-actions[bot]" | |
git config user.email "github-actions[bot]@users.noreply.github.com" | |
git add CHANGELOG.md | |
git commit -m "Update changelog with merged PRs" | |
git push |