diff --git a/.github/workflows/flow-pr-title-check.yaml b/.github/workflows/flow-pr-title-check.yaml index bbef475f..37790da3 100644 --- a/.github/workflows/flow-pr-title-check.yaml +++ b/.github/workflows/flow-pr-title-check.yaml @@ -16,18 +16,22 @@ name: "PR Title Check" on: - workflow_dispatch: - pull_request: + pull_request_target: types: - opened - reopened - edited + - ready_for_review + - review_requested - synchronize defaults: run: shell: bash +permissions: + statuses: write + concurrency: group: pr-checks-${{ github.workflow }}-${{ github.head_ref || github.run_id }} cancel-in-progress: true @@ -35,11 +39,11 @@ concurrency: jobs: title-check: name: Title Check - runs-on: ubuntu-latest + runs-on: [self-hosted, Linux, medium, ephemeral] permissions: statuses: write steps: - name: Check PR Title uses: aslafy-z/conventional-pr-title-action@v3 env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}