Skip to content

Commit

Permalink
docs: Update checkout step in example workflow
Browse files Browse the repository at this point in the history
This update illustrates how to check out the pull request head commit.
  • Loading branch information
chris3ware committed Mar 27, 2024
1 parent b9be4a6 commit b1c5e8c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,11 @@ jobs:
contents: write

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
# Include the pull request ref in the checkout action to prevent merge commit
# https://github.com/actions/checkout?tab=readme-ov-file#checkout-pull-request-head-commit-instead-of-merge-commit
with:
ref: ${{ github.event.pull_request.head.sha }}

# Run steps that make changes to the local repo here.

Expand Down

0 comments on commit b1c5e8c

Please sign in to comment.