Skip to content

Commit

Permalink
Get the head of PR for checkout (#556)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaogaotiantian authored Feb 4, 2025
1 parent bb8b2af commit cc76916
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ jobs:
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
with:
# This is necessary to get the PR head instead of base
ref: ${{ github.event.pull_request.head.sha }}
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
Expand Down

0 comments on commit cc76916

Please sign in to comment.