Use release events to trigger builds from automated weekly releases#744
Merged
Arlodotexe merged 1 commit intomainfrom Oct 6, 2025
Merged
Use release events to trigger builds from automated weekly releases#744Arlodotexe merged 1 commit intomainfrom
Arlodotexe merged 1 commit intomainfrom
Conversation
GitHub Actions tokens cannot trigger workflows on tag creation (security feature). This change replaces git tag + push with gh release create, which triggers release events that CAN activate workflows. Changes: - scheduled-releases.yml: Use gh release create instead of git tag + push - build.yml: Add release: types: [published] trigger with weekly-only filter The filter ensures only automated weekly releases trigger builds, blocking manual releases until needed Ref: https://github.com/orgs/community/discussions/76402
Member
Author
|
Missing fixes for malformed package names and missing Ribbon control, coming soon™️. |
michael-hawker
approved these changes
Oct 6, 2025
Member
michael-hawker
left a comment
There was a problem hiding this comment.
Let's try this out then
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.
Problem
Automated weekly releases created by
scheduled-releases.ymlwere not triggering the build workflow, resulting in missing release artifacts and malformed version numbers.Root Cause: GitHub Actions tokens cannot trigger workflows on tag creation events. When the scheduled workflow creates tags via
git tagandgit push, the resulting tag event is ignored by other workflows due to GitHub's security model.Reference: https://github.com/orgs/community/discussions/76402
Solution
Replace
git tag+git pushwithgh release create, which triggers release events that CAN be activated by Actions tokens.Key Insight:
gh release createautomatically creates the associated tag if it doesn't exist, so we don't need separate tag creation commands.Changes
.github/workflows/scheduled-releases.ymlghCLI)git tag -a+git pushtogh release create--prereleaseflag to mark weekly releases appropriatelyBefore:
After:
.github/workflows/build.ymlrelease: types: [published]trigger to catch automated releasesNew trigger:
New filter step:
Testing
scheduled-releases.ymlmanually via Actions UIBackward Compatibility
The existing
tags: [ 'release/weekly/**' ]trigger remains in place for backward compatibility with any manual tag pushes, though the primary trigger path is now the release event.References