This commit is contained in:
Alfonso Acosta 2023-12-28 12:41:39 -08:00 committed by GitHub
commit a6f51b192c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -246,7 +246,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