planetscale / ghcommit-action

GitHub Action to commit files to a git branch using the ghcommit utility
Apache License 2.0
30 stars 4 forks source link

docs: Update checkout step in example workflow #56

Closed chris3ware closed 8 months ago

chris3ware commented 8 months ago

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