Compare commits

...

2 commits

Author SHA1 Message Date
Alfonso Acosta
6cb1c59256
Merge f6b63ceb9e into cbb722410c 2024-11-18 14:39:22 +01:00
Alfonso Acosta
f6b63ceb9e
Make 'checkout pull request HEAD' example work for non-PRs 2022-03-02 20:23:19 +01:00

View file

@ -252,7 +252,7 @@ Please refer to the [release page](https://github.com/actions/checkout/releases/
```yaml ```yaml
- uses: actions/checkout@v4 - uses: actions/checkout@v4
with: with:
ref: ${{ github.event.pull_request.head.sha }} ref: ${{ github.event.pull_request.head.sha || github.ref }}
``` ```
## Checkout pull request on closed event ## Checkout pull request on closed event