diff --git a/.github/workflows/test-accessibility-alt-text-bot.yml b/.github/workflows/test-accessibility-alt-text-bot.yml index e324cb9..86deb83 100644 --- a/.github/workflows/test-accessibility-alt-text-bot.yml +++ b/.github/workflows/test-accessibility-alt-text-bot.yml @@ -15,7 +15,7 @@ jobs: accessibility_alt_text_bot: name: Check alt text is set on issue or pull requests runs-on: ubuntu-latest - if: ${{ github.event.issue || github.event.pull_request || github.event.discussion && github.event.comment.user.login != 'accessibility-bot' }} + if: ${{ !endsWith(github.actor, '[bot]') }} steps: - name: Check alt text uses: github/accessibility-alt-text-bot@main diff --git a/README.md b/README.md index 1bc2398..2cb532d 100644 --- a/README.md +++ b/README.md @@ -50,6 +50,7 @@ permissions: jobs: accessibility_alt_text_bot: name: Check alt text is set on issue or pull requests + if: ${{ !endsWith(github.actor, '[bot]') }} runs-on: ubuntu-latest steps: - name: Get action 'github/accessibility-alt-text-bot'