0
1
mirror of https://github.com/actions/checkout synced 2024-06-01 18:38:03 +02:00

Update README.md

This commit is contained in:
Thomas Boop 2019-10-24 10:36:11 -04:00 committed by GitHub
parent 977caa6e4a
commit 01bc4e5c74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,8 +13,8 @@ Basic:
```yaml
steps:
- uses: actions/checkout@v1.0.0
- uses: actions/setup-node@master
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 10.x
- run: npm install
@ -25,14 +25,14 @@ By default, the branch or tag ref that triggered the workflow will be checked ou
Checkout different branch from the workflow repository:
```yaml
- uses: actions/checkout@v1.0.0
- uses: actions/checkout@v1
with:
ref: some-branch
```
Checkout different private repository:
```yaml
- uses: actions/checkout@v1.0.0
- uses: actions/checkout@v1
with:
repository: myAccount/myRepository
ref: refs/heads/release
@ -41,7 +41,7 @@ Checkout different private repository:
Checkout private submodules:
```yaml
- uses: actions/checkout@v1.0.0
- uses: actions/checkout@v1
with:
submodules: recursive
token: ${{ secrets.GitHub_PAT }} // `GitHub_PAT` is a secret contains your PAT.
@ -53,7 +53,7 @@ For more details, see [Contexts and expression syntax for GitHub Actions](https:
# Changelog
## master (unreleased)
## v1.1.0 (unreleased)
- Persist `with.token` or `${{ github.token }}` into checkout repository's git config as `http.https://github.com/.extraheader=AUTHORIZATION: basic ***` to better support scripting git
# License