name: ci-check-pr-title

on:
  # runs on `pull_request_target` events so that commenting on the PR is allowed
  pull_request_target:
    types: [opened, edited, synchronize, reopened]

jobs:
  main:
    name: Validate PR title
    runs-on: ubuntu-latest
    permissions:
      pull-requests: read
    steps:
      - uses: amannn/action-semantic-pull-request@v6
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
