Skip to content

Commit

Permalink
[#44] run github workflow job using PR source branch
Browse files Browse the repository at this point in the history
  • Loading branch information
pkdash committed Jun 5, 2023
1 parent cf29bce commit 94909d6
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,17 @@ jobs:

steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
- name: Set up Python ${{ matrix.python-version }} for pull requests
if: ${{ github.event_name == 'pull_request_target' }}
uses: actions/setup-python@v3
with:
ref: ${{ github.head_ref }}
python-version: ${{ matrix.python-version }}
- name: Set up Python ${{ matrix.python-version }} for push
if: ${{ github.event_name == 'push' }}
uses: actions/setup-python@v3
with:
ref: ${{ github.ref }}
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
Expand Down

0 comments on commit 94909d6

Please sign in to comment.