File tree Expand file tree Collapse file tree 1 file changed +12
-7
lines changed Expand file tree Collapse file tree 1 file changed +12
-7
lines changed Original file line number Diff line number Diff line change 11name : CI
2- on : [pull_request]
2+ on :
3+ pull_request_target :
34
45env :
56 PYTHON_VERSION : ' 3.9'
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
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"
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
You can’t perform that action at this time.
0 commit comments