diff --git a/.github/workflows/add-a11y-checklist.yaml b/.github/workflows/add-a11y-checklist.yaml index 638c1b461..2a00f55a7 100644 --- a/.github/workflows/add-a11y-checklist.yaml +++ b/.github/workflows/add-a11y-checklist.yaml @@ -4,7 +4,7 @@ on: types: [opened, synchronize] jobs: add-a11y-check-if-necessary: - name: Add A11Y check + if: github.event.pull_request.head.repo.full_name != github.repository runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 @@ -25,7 +25,7 @@ jobs: comment-author: 'github-actions[bot]' body-includes: accessibilité - name: Create comment - if: github.event.pull_request.head.repo.full_name == github.repository && steps.changed-files-specific.outputs.any_changed == 'true' && steps.find-comment.outputs.comment-id == '' + if: steps.changed-files-specific.outputs.any_changed == 'true' && steps.find-comment.outputs.comment-id == '' uses: peter-evans/create-or-update-comment@v3 with: issue-number: ${{ github.event.pull_request.number }}