mirror of
https://github.com/actions/checkout.git
synced 2025-06-23 23:56:10 +02:00
Merge f80349a6ad
into 09d2acae67
This commit is contained in:
commit
9abac356f4
5 changed files with 33 additions and 3 deletions
14
README.md
14
README.md
|
@ -89,7 +89,7 @@ Please refer to the [release page](https://github.com/actions/checkout/releases/
|
|||
# Default: true
|
||||
persist-credentials: ''
|
||||
|
||||
# Relative path under $GITHUB_WORKSPACE to place the repository
|
||||
# Relative or absolute path under $GITHUB_WORKSPACE to place the repository
|
||||
path: ''
|
||||
|
||||
# Whether to execute `git clean -ffdx && git reset --hard HEAD` before fetching
|
||||
|
@ -232,6 +232,18 @@ Please refer to the [release page](https://github.com/actions/checkout/releases/
|
|||
```
|
||||
> - If your secondary repository is private or internal you will need to add the option noted in [Checkout multiple repos (private)](#Checkout-multiple-repos-private)
|
||||
|
||||
## Checkout repo with a environment based path
|
||||
|
||||
```yaml
|
||||
env:
|
||||
main_path: ${{ github.workspace }}/main
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
path: ${{ env.main_path }}
|
||||
```
|
||||
|
||||
## Checkout multiple repos (nested)
|
||||
|
||||
```yaml
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue