This update illustrates how to check out the pull request head commit in the example workflow.
You may want to add this because, without it, the checkout step fetches the pull request's merge branch so, when the action runs, it creates a merge commit and then another commit for updated files in your pull request.
This update illustrates how to check out the pull request head commit in the example workflow.
You may want to add this because, without it, the checkout step fetches the pull request's merge branch so, when the action runs, it creates a merge commit and then another commit for updated files in your pull request.
The checkout action example is here: https://github.com/actions/checkout?tab=readme-ov-file#checkout-pull-request-head-commit-instead-of-merge-commit