Skip to content

Commit

Permalink
Reference the SHA of the pull request HEAD in the checkout.
Browse files Browse the repository at this point in the history
  • Loading branch information
freakboy3742 committed Aug 3, 2024
1 parent 226f26b commit 0c2fcfd
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,12 @@ jobs:
runs-on: ubuntu-latest
if: contains(github.event.pull_request.labels.*.name, 'preview')
steps:
- uses: actions/checkout@v4
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0

- name: Set up Python
uses: actions/setup-python@v5
with:
Expand Down

0 comments on commit 0c2fcfd

Please sign in to comment.