Skip to content

fix: move changelog update into release workflow [2.x]#117

Merged
ManukMinasyan merged 1 commit into2.xfrom
fix/release-changelog-inline-2x
Mar 18, 2026
Merged

fix: move changelog update into release workflow [2.x]#117
ManukMinasyan merged 1 commit into2.xfrom
fix/release-changelog-inline-2x

Conversation

@ManukMinasyan
Copy link
Collaborator

Summary

Moves changelog update logic from standalone changelog.yml into the release.yml workflow as an inline changelog job.

Why

Releases created by GITHUB_TOKEN don't trigger on: release events (GitHub anti-recursion rule). The standalone changelog.yml never fires when the Release workflow auto-creates a release. By inlining it, the changelog update runs as part of the same workflow.

The deploy key (DEPLOY_KEY) bypasses the branch ruleset to push directly.

The standalone changelog.yml triggers on `release: released` events,
but releases created by GITHUB_TOKEN don't fire this event (GitHub
anti-recursion). Move changelog logic into the release workflow as an
inline job that runs after the release is created.
Copilot AI review requested due to automatic review settings March 18, 2026 09:15
@ManukMinasyan ManukMinasyan merged commit e3c1f23 into 2.x Mar 18, 2026
3 checks passed
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Moves the changelog update logic from a standalone changelog.yml (triggered by on: release) into the existing tag-driven release.yml workflow to ensure the changelog update runs even when the release is created by the workflow itself.

Changes:

  • Adds an inline changelog job to release.yml that fetches release notes and updates CHANGELOG.md on the appropriate maintenance branch.
  • Removes the standalone changelog.yml workflow that relied on on: release events.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
.github/workflows/release.yml Adds a changelog job that determines the target branch, fetches release notes via gh, updates CHANGELOG.md, and commits it back.
.github/workflows/changelog.yml Removes the now-redundant release-event-driven changelog workflow.

Comment on lines +84 to +94
- name: Update Changelog
uses: stefanzweifel/changelog-updater-action@v1
with:
latest-version: ${{ github.ref_name }}
release-notes: ${{ steps.notes.outputs.body }}

- name: Commit updated CHANGELOG
uses: stefanzweifel/git-auto-commit-action@v7
with:
branch: ${{ steps.branch.outputs.name }}
commit_message: "chore: update CHANGELOG for ${{ github.ref_name }}"
@ManukMinasyan ManukMinasyan deleted the fix/release-changelog-inline-2x branch March 18, 2026 09:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants