Skip to content

Fix checkout step emission for workflows using action-tag feature - #7555

Merged
pelikhan merged 3 commits into
mainfrom
copilot/remove-checkout-action-folder
Dec 24, 2025
Merged

pelikhan merged 3 commits into
mainfrom
copilot/remove-checkout-action-folder

Conversation

Copilot AI commented Dec 24, 2025 •

Copy link
Copy Markdown
Contributor

Workflows using the action-tag feature were emitting unnecessary checkout steps in activation and agent jobs despite using remote action references.

Problem

The generateCheckoutActionsFolder() function only checked actionMode.IsDev() to determine whether to emit checkout steps. However, action-tag overrides the mode to use remote actions, making the checkout unnecessary:

features:
  action-tag: "523f6cfa..."  # Uses remote actions/setup@<sha>

This resulted in workflows like daily-fact.md generating spurious checkout steps that served no purpose.

Changes

  • Modified generateCheckoutActionsFolder() to check for action-tag in workflow features before emitting checkout
  • Updated 8 call sites to pass WorkflowData parameter for feature detection
  • Fixed permission/step counting logic that depended on checkout emission detection

Result

Workflows with action-tag now correctly skip checkout steps. The daily-fact.md workflow went from 2 unnecessary checkout steps (activation + agent jobs) to 0.

Original prompt

Reference: https://github.com/githubnext/gh-aw/actions/runs/20493722138/job/58890218750#step:2:1

The checkout action folder is not needed when using the "action-tag" feature. It should not be emitted for daily fact agentic workflows.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

@pelikhan

Copy link
Copy Markdown
Collaborator

@copilot create helper function that does the check and use in all places

@pelikhan
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 AI requested a review from pelikhan December 24, 2025 21:20
@pelikhan
pelikhan merged commit 54b0c23 into main Dec 24, 2025
@pelikhan
pelikhan deleted the copilot/remove-checkout-action-folder branch December 24, 2025 21:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants