Skip to content

Commit ca5895e

Browse files
awf-autoware-bot[bot]kenji-miyake
authored andcommitted
chore: sync files (tier4#713)
Signed-off-by: GitHub <[email protected]> Co-authored-by: kenji-miyake <[email protected]>
1 parent e3fd599 commit ca5895e

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/pre-commit.yaml

+16
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,28 @@ on:
55

66
jobs:
77
pre-commit:
8+
if: ${{ github.event.repository.private }}
89
runs-on: ubuntu-latest
910
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+
1018
- name: Check out repository
1119
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 }}
1227

1328
- name: Run pre-commit
1429
uses: autowarefoundation/autoware-github-actions/pre-commit@v1
1530
with:
1631
pre-commit-config: .pre-commit-config.yaml
32+
token: ${{ steps.generate-token.outputs.token }}

0 commit comments

Comments
 (0)