Make 'checkout pull request HEAD' example work for non-PRs

pull/712/head
Alfonso Acosta 3 years ago committed by GitHub
parent 2d1c1198e7
commit f6b63ceb9e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save