-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[bug] Setting clean to false still removes contents #1201
Comments
Please check that the check-out directory contains the .git directory. |
I have a similar situation where I restore artifacts from a cache to the |
A simple repro would be:
|
In #11571 we tried to fix the failing API verification by moving setting up the environment and restoring artifacts to the same job as the api verification itself. However, this doesn't help and the `artifacts` subdirectory still vanishes, caused by actions/checkout#1201. This change reverts the change introduced in #11571 and changes the git checkout to end in a separate subdirectory. Reverts: #11571
… dir In #11571 we tried to fix the failing API verification by moving setting up the environment and restoring artifacts to the same job as the api verification itself. However, this doesn't help and the `artifacts` subdirectory still vanishes, caused by actions/checkout#1201. This change reverts the change introduced in #11571 and changes the git checkout to end in a separate subdirectory. Reverts: #11571
The explanation given in PR #561 still holds: checkout/src/git-directory-helper.ts Lines 27 to 32 in 6d193bf
PR #561, opened in Aug 2021 and still open in Sep 2024, proposed a change to respect This also indicates the current (v4.1.7) doc of |
any news on that or a workaround? I also have a multi step build pipeline, that later tries to upload the packages from the Build.ArtifactStagingDirectory but it keeps getting deleted, even if the steps.clean property is set to false |
Any update or workaround for this ? |
any update on this? |
seems to still be a problem |
Context
I'm currently attempting a duel repo setup where one builds nightlies for the other.
I checkout the nightly-builder repo into
./nightly
I checkout the main repo into './' with the
clean
option set tofalse
Expected behavior:
./nightly
directory to exist after checking out main repoCurrent Behavior:
./nightly
directory is deletedRelevant workflow.yml parts
The text was updated successfully, but these errors were encountered: