actions / actions/checkout

clean submodule

Open
#358 9 comments 28 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
8.9k
Forks
2.8k
PR merge metrics
No merged PRs in 30d

Description

current

When clean: true, during Cleaning the repository, it will do:

git clean -ffdx
git reset --hard HEAD

want

When submodules: true or submodules: recursive, I want it also do:

git submodule foreach [--recursive] git clean -ffdx
git submodule foreach [--recursive] git reset --hard

why

I have a submodule in C++, I want to recompile it without cache everytime.

I was manually run git reset before make. But after I set submodule.xxx.update = rebase, it may (or may not) fail during Fetching submodules step.

The clean step must happend before submodule update in my case.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the checkout action's clean step and submodule-update handling, then inspect tests covering clean and submodules options. Verify that recursive and non-recursive submodules are cleaned and reset before fetching or updating, while behavior remains unchanged when either option is disabled.

Written by the indexing model from the issue text.

Assessment

Tech stack
git, typescript
Domain
ci-cd, devops
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.