1
0
Fork 0
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:
Thomas Boop 2019-11-04 15:50:24 -05:00
parent a08146ccd8
commit aa3619c586

View file

@ -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