From 77154e5f9850d39767b3060d970d0239068fad83 Mon Sep 17 00:00:00 2001 From: Kendall Gassner Date: Tue, 7 Jan 2025 23:17:53 +0000 Subject: [PATCH 1/2] Update readme to ignore markdown generated by bots --- .github/workflows/test-accessibility-alt-text-bot.yml | 2 +- README.md | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test-accessibility-alt-text-bot.yml b/.github/workflows/test-accessibility-alt-text-bot.yml index e324cb9..61708b6 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: ${{ github.event.issue || github.event.pull_request || github.event.discussion && github.event.comment.user.login != 'accessibility-bot' }} && ${{ !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' From 674e47c5508aba07105eaa9386b8a4a28902c444 Mon Sep 17 00:00:00 2001 From: Kendall Gassner Date: Tue, 7 Jan 2025 15:41:41 -0800 Subject: [PATCH 2/2] Simplify workflow condition for accessibility bot --- .github/workflows/test-accessibility-alt-text-bot.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-accessibility-alt-text-bot.yml b/.github/workflows/test-accessibility-alt-text-bot.yml index 61708b6..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' }} && ${{ !endsWith(github.actor, '[bot]') }} + if: ${{ !endsWith(github.actor, '[bot]') }} steps: - name: Check alt text uses: github/accessibility-alt-text-bot@main