mirror of
https://gitea.com/actions/checkout.git
synced 2024-11-09 18:25:56 +01:00
Make 'checkout pull request HEAD' example work for non-PRs
This commit is contained in:
parent
2d1c1198e7
commit
f6b63ceb9e
1 changed files with 1 additions and 1 deletions
|
@ -184,7 +184,7 @@ When Git 2.18 or higher is not in your PATH, falls back to the REST API to downl
|
|||
```yaml
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
ref: ${{ github.event.pull_request.head.sha }}
|
||||
ref: ${{ github.event.pull_request.head.sha || github.ref }}
|
||||
```
|
||||
|
||||
## Checkout pull request on closed event
|
||||
|
|
Loading…
Reference in a new issue