Repository navigation
Fix checkout step emission for workflows using action-tag feature - #7555
Merged
Merged
Conversation
Co-authored-by: pelikhan <[email protected]>
Collaborator
|
@copilot create helper function that does the check and use in all places |
Co-authored-by: pelikhan <[email protected]>
pelikhan
approved these changes
Dec 24, 2025
pelikhan
marked this pull request as ready for review
December 24, 2025 21:16
Copilot
AI
changed the title
[WIP] Remove unnecessary checkout action folder for daily workflows
Fix checkout step emission for workflows using action-tag feature
Dec 24, 2025
Copilot stopped work on behalf of
pelikhan due to an error
December 24, 2025 21:21
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.
Workflows using the
action-tagfeature were emitting unnecessary checkout steps in activation and agent jobs despite using remote action references.Problem
The
generateCheckoutActionsFolder()function only checkedactionMode.IsDev()to determine whether to emit checkout steps. However,action-tagoverrides the mode to use remote actions, making the checkout unnecessary:This resulted in workflows like
daily-fact.mdgenerating spurious checkout steps that served no purpose.Changes
generateCheckoutActionsFolder()to check foraction-tagin workflow features before emitting checkoutWorkflowDataparameter for feature detectionResult
Workflows with
action-tagnow correctly skip checkout steps. Thedaily-fact.mdworkflow went from 2 unnecessary checkout steps (activation + agent jobs) to 0.Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.