This repository has been archived by the owner on Jul 1, 2024. It is now read-only.
ci: overhaul build-and-test derivatives and split clang-tidy #1170
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: pre-commit | |
on: | |
pull_request: | |
jobs: | |
pre-commit: | |
if: ${{ github.event.repository.private }} # Use pre-commit.ci for public repositories | |
runs-on: ubuntu-latest | |
steps: | |
- name: Generate token | |
id: generate-token | |
uses: tibdex/github-app-token@v2 | |
with: | |
app_id: ${{ secrets.APP_ID }} | |
private_key: ${{ secrets.PRIVATE_KEY }} | |
- name: Check out repository | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.event.pull_request.head.ref }} | |
- name: Run pre-commit | |
uses: autowarefoundation/autoware-github-actions/pre-commit@v1 | |
with: | |
pre-commit-config: .pre-commit-config.yaml | |
token: ${{ steps.generate-token.outputs.token }} |