Skip to content

ci: restore post-release workflow on 3.x#16748

Merged
denolfe merged 1 commit into
3.xfrom
ci/3.x-release-notifications
May 26, 2026
Merged

ci: restore post-release workflow on 3.x#16748
denolfe merged 1 commit into
3.xfrom
ci/3.x-release-notifications

Conversation

@denolfe

@denolfe denolfe commented May 26, 2026

Copy link
Copy Markdown
Member

Overview

Restores release notifications (PR/issue comments, website dispatch, Discord announcement) for Payload v3.x releases.

Key Changes

  • Port post-release workflow and release-commenter action to 3.x

    • Adds .github/workflows/post-release.yml and .github/actions/release-commenter/ from main.
    • GitHub Actions resolves release event workflows from the release's target_commitish branch, not the repo default. Since v3.84.1, releases set target_commitish: 3.x, where neither file existed, so no workflow runs were queued.
  • Differences vs. the version previously on 3.x (removed in ci: adjust 3.x branch references #16358)

    • release-commenter action: identical.
    • post-release.yml: adds the dispatch-to-website job (sends repository_dispatch to payloadcms/website) and pins the Discord action to a SHA. Reviewers should confirm dispatch-to-website is desired for 3.x releases; if the website only expects events from main/v4, that job should be dropped before merging.

Design Decisions

Chose to reinstate original workflow.

Drift risk: future edits to post-release.yml on main must be mirrored to 3.x.

Overall Flow

sequenceDiagram
    participant Releaser as tools/releaser
    participant GH as GitHub
    participant WF as post-release.yml (3.x)
    participant Site as payloadcms/website
    participant Discord

    Releaser->>GH: Publish release (target_commitish=3.x)
    GH->>WF: Trigger release:published from 3.x branch
    WF->>GH: Comment on linked PRs/issues (release-commenter)
    WF->>Site: repository_dispatch payload-release-event
    WF->>Discord: Post to releases + general channels
Loading

GitHub fires release-event workflows from the release's target_commitish
branch, so 3.x releases (v3.84.1, v3.85.0) never triggered post-release
because the workflow and action only existed on main.
@denolfe denolfe marked this pull request as ready for review May 26, 2026 14:59
@denolfe denolfe merged commit f1861c1 into 3.x May 26, 2026
24 checks passed
@denolfe denolfe deleted the ci/3.x-release-notifications branch May 26, 2026 15:02
@github-actions

github-actions Bot commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

🚀 This is included in version v3.85.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant