Skip to content

feat(inputs): add option to disable the post action #2228

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

zekth
Copy link

@zekth zekth commented Jul 28, 2025

Add an option to disable the post-hook of checkout. This will enable people to run private github actions within other workflows without having to hack around like this:

#1149 (comment)

fixes: #1149
fixes: #2164

@Copilot Copilot AI review requested due to automatic review settings July 28, 2025 13:26
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds a new skip-cleanup input option to the checkout action that allows users to disable the post-action cleanup phase. This enables running private GitHub actions within other workflows without requiring workarounds.

  • Added skip-cleanup boolean input parameter with default value of false
  • Updated the cleanup function to conditionally skip cleanup based on the new setting
  • Extended the IGitSourceSettings interface to include the skipCleanup property

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
action.yml Adds the new skip-cleanup input parameter definition
src/git-source-settings.ts Extends interface to include skipCleanup boolean property
src/main.ts Implements conditional cleanup logic based on the new setting

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add option to skip post checkout cleanup phase Option to not do post-job cleanup
2 participants