Skip to content

Commit 1a5753d

Browse files
committed
upd
1 parent 8256e15 commit 1a5753d

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
name: CI
2-
on: [pull_request]
2+
on:
3+
pull_request_target:
34

45
env:
56
PYTHON_VERSION: '3.9'
@@ -9,11 +10,19 @@ jobs:
910
format-check:
1011
runs-on: self-hosted
1112

13+
permissions:
14+
contents: write
15+
pull-requests: write
16+
17+
1218
steps:
1319
- name: Checkout repository
14-
uses: actions/checkout@v2
20+
uses: actions/checkout@v4
1521
with:
1622
fetch-depth: 0
23+
repository: ${{ github.event.pull_request.head.repo.full_name }}
24+
ref: ${{ github.event.pull_request.head.ref }}
25+
token: ${{ secrets.PAT }}
1726

1827
- name: Set up Python
1928
uses: actions/setup-python@v2
@@ -41,9 +50,6 @@ jobs:
4150
touch "$MARKER"
4251
fi
4352
44-
- name: Update submodules
45-
run: git submodule update --init --recursive
46-
4753
- name: Run format check
4854
run: |
4955
source "${{ runner.tool_cache }}/${{ env.VENV_DIR }}/bin/activate"
@@ -55,8 +61,7 @@ jobs:
5561
uses: stefanzweifel/git-auto-commit-action@v5
5662
with:
5763
commit_message: "lint"
58-
commit_user_name: github-actions[bot]
59-
commit_user_email: github-actions[bot]@users.noreply.github.com
64+
6065

6166
build-test:
6267
runs-on: self-hosted

0 commit comments

Comments
 (0)