mirror of
https://github.com/actions/checkout.git
synced 2025-03-31 05:20:06 +02:00
Add checkout different repo example back in
This commit is contained in:
parent
a08146ccd8
commit
aa3619c586
1 changed files with 9 additions and 0 deletions
|
@ -34,6 +34,15 @@ Checkout different branch from the workflow repository:
|
|||
ref: some-branch
|
||||
```
|
||||
|
||||
Checkout different private repository:
|
||||
```yaml
|
||||
- uses: actions/checkout@v1
|
||||
with:
|
||||
repository: myAccount/myRepository
|
||||
ref: refs/heads/master
|
||||
token: ${{ secrets.GitHub_PAT }} // `GitHub_PAT` is a secret contains your PAT.
|
||||
```
|
||||
|
||||
Checkout private submodules:
|
||||
```yaml
|
||||
- uses: actions/checkout@v1
|
||||
|
|
Loading…
Add table
Reference in a new issue