name: PR Title Check on: pull_request: branches: - main jobs: check-title: runs-on: ubuntu-latest steps: - name: Checkout code uses: actions/checkout@v4 with: fetch-depth: 0 - name: Check PR title when source files change env: API_URL: ${{ vars.API_URL }} REPO_OWNER: ${{ github.repository_owner }} REPO_NAME: ${{ github.event.repository.name }} PR_NUMBER: ${{ github.event.pull_request.number }} CI_RUNNER_TOKEN: ${{ secrets.CI_RUNNER_TOKEN }} run: | git fetch origin "${{ github.base_ref }}" PR_TITLE=$(scripts/ci/fetch-pr-title.sh) echo "Live PR title: ${PR_TITLE}" git diff --name-only "origin/${{ github.base_ref }}...HEAD" \ | scripts/ci/check-pr-title.sh "$PR_TITLE"