Commit 668e194 2 people authored and committed
1 parent ad00ed7 commit 668e194 Copy full SHA for 668e194
File tree 1 file changed +16
-0
lines changed
1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change 5
5
6
6
jobs :
7
7
pre-commit :
8
+ if : ${{ github.event.repository.private }}
8
9
runs-on : ubuntu-latest
9
10
steps :
11
+ - name : Generate token
12
+ id : generate-token
13
+ uses : tibdex/github-app-token@v1
14
+ with :
15
+ app_id : ${{ secrets.APP_ID }}
16
+ private_key : ${{ secrets.PRIVATE_KEY }}
17
+
10
18
- name : Check out repository
11
19
uses : actions/checkout@v3
20
+ with :
21
+ ref : ${{ github.event.pull_request.head.ref }}
22
+
23
+ - name : Set git config
24
+ uses : autowarefoundation/autoware-github-actions/set-git-config@v1
25
+ with :
26
+ token : ${{ steps.generate-token.outputs.token }}
12
27
13
28
- name : Run pre-commit
14
29
uses : autowarefoundation/autoware-github-actions/pre-commit@v1
15
30
with :
16
31
pre-commit-config : .pre-commit-config.yaml
32
+ token : ${{ steps.generate-token.outputs.token }}
You can’t perform that action at this time.
0 commit comments