Use release events to trigger builds from automated weekly releases #744
      
        
          +33
        
        
          −10
        
        
          
        
      
    
  
  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