Add checkout different repo example back in

pull/64/head
Thomas Boop 6 years ago
parent a08146ccd8
commit aa3619c586

@ -34,6 +34,15 @@ Checkout different branch from the workflow repository:
ref: some-branch 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: Checkout private submodules:
```yaml ```yaml
- uses: actions/checkout@v1 - uses: actions/checkout@v1

Loading…
Cancel
Save