Fix release workflow not triggered after tag push#3
Merged
Conversation
Owner
|
@copilot try again lol |
- Add workflow_call trigger to release.yml to allow being called by other workflows - Update create-release-tag.yml to directly call release workflow after creating tag - Add tag determination step in release workflow to handle both tag push and workflow_call events - Update all references to github.ref_name to use the determined tag output - This fixes the issue where GITHUB_TOKEN doesn't trigger workflows on tag push Co-authored-by: cdanis <1160935+cdanis@users.noreply.github.com>
Contributor
Author
Fixed in bc326e5! The issue was that The solution:
Now when you run "Create Release Tag", it will:
The release workflow still works with manual tag pushes from outside workflows too. |
Copilot
AI
changed the title
[WIP] Fix release actions not triggered after tag push
Fix release workflow not triggered after tag push
Jan 12, 2026
cdanis
approved these changes
Jan 12, 2026
Owner
|
@copilot instrad of just bailing in the tag exists, check if the release exists and trigger release if not |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes the issue where the release workflow was not being triggered after the create-release-tag workflow pushed a tag.
Problem
When a GitHub Actions workflow uses
GITHUB_TOKENto push a tag, it doesn't trigger other workflows that listen to tag push events. This is a GitHub security feature to prevent recursive workflow triggers.Solution
Modified the workflows to use
workflow_callfor direct workflow invocation instead of relying on tag push events to trigger the release workflow.Changes Made
workflow_calltrigger with ataginput parameter, allowing it to be called directly by other workflowstrigger-release) that directly calls the release workflow after successfully creating a taggithub.ref_nameto use the dynamically determined tag outputHow It Works
workflow_callBenefits
Testing
To test this fix:
package.jsonto a new versionOriginal prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.