2023-01-17 13:21:53 +00:00
|
|
|
name: lint
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
types:
|
|
|
|
- opened
|
|
|
|
- edited
|
|
|
|
- synchronize
|
|
|
|
|
|
|
|
concurrency:
|
|
|
|
group: "${{ github.workflow }}-${{ github.ref }}"
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
pr:
|
|
|
|
name: Validate PR title
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: amannn/action-semantic-pull-request@v5
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
|
|
|
|
reviewdog:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- name: Lint actions
|
|
|
|
uses: reviewdog/action-actionlint@v1
|
2023-01-18 11:36:03 +00:00
|
|
|
env:
|
|
|
|
SHELLCHECK_OPTS: "-e SC2086"
|
2023-01-17 13:21:53 +00:00
|
|
|
with:
|
|
|
|
reporter: github-pr-check
|
|
|
|
fail_on_error: true
|