ci(release): fix invalid env context in the prebuilt workflow call - #2481
Merged
Conversation
The job-level with: of a reusable workflow caller may only use the github/needs/vars/inputs contexts, so the env.RELEASE_TAG reference made GitHub reject the whole workflow file - every run of release.yml has failed with a "workflow file issue" since the workflow was introduced. Compute the tag from the github/inputs contexts instead.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2481 +/- ##
=======================================
Coverage 85.46% 85.46%
=======================================
Files 125 125
Lines 22962 22962
=======================================
Hits 19625 19625
Misses 3337 3337 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Contributor
Author
|
@ni4 one-line workflow fix for your class: |
ni4
approved these changes
Sep 4, 2026
ni4
left a comment
Contributor
There was a problem hiding this comment.
LGTM! Merging with single approval as CI-only.
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.
Summary
release.ymlhas failed with a workflow-file issue on every trigger since it was introduced - actionlint pinpoints it: theprebuiltjob calls the reusableprebuilt.ymlwithtag: env.RELEASE_TAG, but theenvcontext is not allowed in a caller's job-levelwith:(onlygithub/needs/vars/inputs).Test plan