Skip to content

switch post-build-publish to use workflow dispatch instead of reposit…#22381

Open
Tofel wants to merge 1 commit into
developfrom
switch_repository_dispatch_to_workflow_dispatch
Open

switch post-build-publish to use workflow dispatch instead of reposit…#22381
Tofel wants to merge 1 commit into
developfrom
switch_repository_dispatch_to_workflow_dispatch

Conversation

@Tofel
Copy link
Copy Markdown
Contributor

@Tofel Tofel commented May 11, 2026

…ory dispatch to avoid this kind of issues where the triggered workflow runs from develop branch that uses a reusable workflow that doesn't yet exists in the tag that we checkout.

@Tofel Tofel marked this pull request as ready for review May 11, 2026 15:20
@Tofel Tofel requested a review from a team as a code owner May 11, 2026 15:20
Copilot AI review requested due to automatic review settings May 11, 2026 15:20
@Tofel Tofel requested review from a team as code owners May 11, 2026 15:20
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 11, 2026

✅ No conflicts with other open PRs targeting develop

Copy link
Copy Markdown
Contributor

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

Risk Rating: MEDIUM

This PR updates the release automation so post-build-publish.yml is triggered via workflow_dispatch (run from the tag ref) instead of repository_dispatch, preventing runs from inadvertently using develop’s workflow definitions when operating on a tag.

Changes:

  • Switched .github/workflows/post-build-publish.yml from repository_dispatch to workflow_dispatch with explicit inputs.
  • Updated .github/workflows/build-publish.yml to trigger post-build-publish.yml via gh workflow run --ref <tag> and added a pre-flight workflow existence check.

Scrupulous human review recommended (high impact areas):

  • The new gh workflow view / gh workflow run logic and its error-handling/skip behavior in .github/workflows/build-publish.yml.
  • Input validation behavior changes in .github/workflows/post-build-publish.yml (especially around empty/invalid inputs).

Reviewed changes

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

File Description
.github/workflows/post-build-publish.yml Replaces repository_dispatch trigger with workflow_dispatch inputs and updates payload references accordingly.
.github/workflows/build-publish.yml Replaces repository dispatch emission with a gh workflow run dispatch against the pushed tag ref.

Comment thread .github/workflows/post-build-publish.yml
@Tofel Tofel force-pushed the switch_repository_dispatch_to_workflow_dispatch branch from 0605a1d to 1cdce15 Compare May 11, 2026 15:26
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