0
1
Fork 0

Compare commits

...

2 Commits

Author SHA1 Message Date
cjc7373 2a4fa2deb3
Merge 96e67d5384 into 43045ae669 2024-04-23 16:30:01 -04:00
cjc7373 96e67d5384
doc: clarify the behavior of a pull_request event 2024-02-27 18:03:06 +08:00
1 changed files with 2 additions and 0 deletions

View File

@ -248,6 +248,8 @@ Please refer to the [release page](https://github.com/actions/checkout/releases/
## Checkout pull request HEAD commit instead of merge commit
The default behavior of a `pull_request` event is to checkout to a ref that already merged your branch into the base branch (So don't be surprised to see the SHA checked out doesn't match your local HEAD SHA). You can change that to checkout your pull request's HEAD by:
```yaml
- uses: actions/checkout@v4
with: