1
0
Fork 0
mirror of https://code.forgejo.org/actions/checkout.git synced 2025-05-07 02:22:25 +02:00

Add exclude_from_clean option

This commit is contained in:
Gregory Bonaert 2025-04-10 10:13:16 +02:00
parent 85e6279cec
commit ed2311a594
10 changed files with 45 additions and 12 deletions

View file

@ -1,5 +1,8 @@
[![Build and Test](https://github.com/actions/checkout/actions/workflows/test.yml/badge.svg)](https://github.com/actions/checkout/actions/workflows/test.yml)
Changes compared to https://github.com/actions/checkout:
- Can exclude path when cleaning repository (see `exclude_from_clean` argument)
# Checkout V4
This action checks-out your repository under `$GITHUB_WORKSPACE`, so your workflow can access it.
@ -78,6 +81,9 @@ Please refer to the [release page](https://github.com/actions/checkout/releases/
# Default: true
clean: ''
# The path to exclude from cleaning
exclude_from_clean: ''
# Partially clone against a given filter. Overrides sparse-checkout if set.
# Default: null
filter: ''