1
0
Fork 0
mirror of https://github.com/actions/checkout.git synced 2025-03-31 05:20:06 +02:00

clarify checkout behavior

This commit is contained in:
Zeke Sikelianos 2019-09-05 08:41:16 -07:00
parent c176d89032
commit 64ed9bea20

View file

@ -21,12 +21,12 @@ steps:
- run: npm test
```
To check out the branch or tag ref that triggered the workflow run:
By default, the branch or tag ref that triggered the workflow will be checked out. If you wish to check out a different branch, specify that using `with.ref`:
```yaml
- uses: actions/checkout@master
with:
ref: ${{ github.ref }}
ref: some-branch
```
For more details, see [Contexts and expression syntax for GitHub Actions](https://help.github.com/en/articles/contexts-and-expression-syntax-for-github-actions)