|
|
@@ -5,7 +5,7 @@ on:
|
|
|
push:
|
|
|
branches:
|
|
|
- main
|
|
|
- pull_request:
|
|
|
+ pull_request_target:
|
|
|
branches:
|
|
|
- main
|
|
|
workflow_dispatch: {}
|
|
|
@@ -21,17 +21,17 @@ jobs:
|
|
|
python-version: [ '3.10' ]
|
|
|
steps:
|
|
|
- name: Checkout code
|
|
|
- uses: actions/checkout@v2
|
|
|
+ uses: actions/checkout@v4
|
|
|
with:
|
|
|
ref: ${{ github.event.pull_request.head.sha }}
|
|
|
|
|
|
- name: Setup Python
|
|
|
- uses: actions/setup-python@v2
|
|
|
+ uses: actions/setup-python@v5
|
|
|
with:
|
|
|
python-version: ${{ matrix.python-version }}
|
|
|
|
|
|
- name: Cache pip dir
|
|
|
- uses: actions/cache@v2
|
|
|
+ uses: actions/cache@v4
|
|
|
with:
|
|
|
path: ~/.cache/pip
|
|
|
key: pip-cache-${{ matrix.python-version }}-lint
|
|
|
@@ -57,6 +57,8 @@ jobs:
|
|
|
steps:
|
|
|
- name: Checkout code
|
|
|
uses: actions/checkout@v4
|
|
|
+ with:
|
|
|
+ ref: ${{ github.event.pull_request.head.sha }}
|
|
|
|
|
|
- name: Setup Python
|
|
|
uses: actions/setup-python@v5
|