File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -12,15 +12,15 @@ jobs:
12
12
pre-commit :
13
13
runs-on : ubuntu-latest
14
14
timeout-minutes : 10
15
+ env :
16
+ REPO_SCOPED_TOKEN : ${{ secrets.REPO_SCOPED_TOKEN }}
15
17
16
18
steps :
17
19
- name : Check out the repo
18
20
uses : actions/checkout@v4
19
21
with :
20
22
fetch-depth : 0
21
- repository : ${{ github.event.pull_request.head.repo.full_name }}
22
- ref : ${{ github.event.pull_request.head.ref }}
23
- token : ${{ secrets.REPO_SCOPED_TOKEN || github.token }}
23
+ token : ${{ env.REPO_SCOPED_TOKEN || github.token }}
24
24
25
25
- name : Setup environment
26
26
uses : ./.github/actions/setup-environment
38
38
shell : bash
39
39
40
40
- uses : stefanzweifel/git-auto-commit-action@v5
41
- # Always commit changes even if pre-commit failed
42
- if : always() && github.event_name == 'pull_request'
41
+ if : ${{ always() && env.REPO_SCOPED_TOKEN && github.event_name == 'pull_request' }}
43
42
with :
44
43
commit_message : " Automated pre-commit update"
45
44
push_options : " --no-verify"
You can’t perform that action at this time.
0 commit comments