Skip to content

Change location of changelog.yml #1

Change location of changelog.yml

Change location of changelog.yml #1

Workflow file for this run

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