Skip to content

ci: add precommit

ci: add precommit #5

Workflow file for this run

name: pre-commit
on:
pull_request:
jobs:
pre-commit:
# if: ${{ github.event.repository.private }}
runs-on: ubuntu-latest
steps:
# - name: Generate token
# id: generate-token
# uses: tibdex/github-app-token@v1
# with:
# app_id: ${{ secrets.APP_ID }}
# private_key: ${{ secrets.PRIVATE_KEY }}
- name: Check out repository
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.ref }}
- name: Set git config
uses: autowarefoundation/autoware-github-actions/set-git-config@v1
with:

Check failure on line 24 in .github/workflows/pre-commit.yaml

View workflow run for this annotation

GitHub Actions / pre-commit

Invalid workflow file

The workflow is not valid. .github/workflows/pre-commit.yaml (Line: 24, Col: 14): Unexpected value ''
# token: ${{ steps.generate-token.outputs.token }}
- 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 }}