From 24710a9a92a7dd2e6451a597af38076995dc9c25 Mon Sep 17 00:00:00 2001 From: Tim Carr Date: Fri, 20 Mar 2026 17:11:36 +0800 Subject: [PATCH 1/2] Skip Actions on Dependanbot PRs --- .github/workflows/coding-standards.yml | 5 +++++ .github/workflows/tests-backward-compat.yml | 5 +++++ .github/workflows/tests.yml | 7 ++++++- 3 files changed, 16 insertions(+), 1 deletion(-) diff --git a/.github/workflows/coding-standards.yml b/.github/workflows/coding-standards.yml index 201631404..9b1f8e3c1 100644 --- a/.github/workflows/coding-standards.yml +++ b/.github/workflows/coding-standards.yml @@ -18,6 +18,11 @@ jobs: # Virtual Environment to use. # @see: https://github.com/actions/virtual-environments runs-on: ubuntu-latest + + # Don't run if the PR is from Dependabot, as it doesn't have access to the repository's secrets. + # Dependabot also only checks for GitHub action dependencies, so it's not necessary to run + # Plugin tests. + if: github.actor != 'dependabot[bot] # Environment Variables. # Accessible by using ${{ env.NAME }} diff --git a/.github/workflows/tests-backward-compat.yml b/.github/workflows/tests-backward-compat.yml index 93f1ca084..56ee865ab 100644 --- a/.github/workflows/tests-backward-compat.yml +++ b/.github/workflows/tests-backward-compat.yml @@ -19,6 +19,11 @@ jobs: # @see: https://github.com/actions/virtual-environments runs-on: ubuntu-latest + # Don't run if the PR is from Dependabot, as it doesn't have access to the repository's secrets. + # Dependabot also only checks for GitHub action dependencies, so it's not necessary to run + # Plugin tests. + if: github.actor != 'dependabot[bot] + # Environment Variables. # Accessible by using ${{ env.NAME }} # Use ${{ secrets.NAME }} to include any GitHub Secrets in ${{ env.NAME }} diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 6cf311f85..4928a9dc1 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -19,6 +19,11 @@ jobs: # @see: https://github.com/actions/virtual-environments runs-on: ubuntu-latest + # Don't run if the PR is from Dependabot, as it doesn't have access to the repository's secrets. + # Dependabot also only checks for GitHub action dependencies, so it's not necessary to run + # Plugin tests. + if: github.actor != 'dependabot[bot] + # Environment Variables. # Accessible by using ${{ env.NAME }} # Use ${{ secrets.NAME }} to include any GitHub Secrets in ${{ env.NAME }} @@ -391,7 +396,7 @@ jobs: needs: tests # Only run on pull requests, not when merging to main branch - if: github.event_name == 'pull_request' + if: github.event_name == 'pull_request' && github.actor != 'dependabot[bot]' # Virtual Environment to use. # @see: https://github.com/actions/virtual-environments From 952f885113a980dcd45d929be370507b96176f27 Mon Sep 17 00:00:00 2001 From: Tim Carr Date: Fri, 20 Mar 2026 17:24:35 +0800 Subject: [PATCH 2/2] Fix typo --- .github/workflows/coding-standards.yml | 2 +- .github/workflows/tests-backward-compat.yml | 2 +- .github/workflows/tests.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/coding-standards.yml b/.github/workflows/coding-standards.yml index 8ba8ac878..f72219b4c 100644 --- a/.github/workflows/coding-standards.yml +++ b/.github/workflows/coding-standards.yml @@ -22,7 +22,7 @@ jobs: # Don't run if the PR is from Dependabot, as it doesn't have access to the repository's secrets. # Dependabot also only checks for GitHub action dependencies, so it's not necessary to run # Plugin tests. - if: github.actor != 'dependabot[bot] + if: github.actor != 'dependabot[bot]' # Environment Variables. # Accessible by using ${{ env.NAME }} diff --git a/.github/workflows/tests-backward-compat.yml b/.github/workflows/tests-backward-compat.yml index 4fc448e88..914a600b8 100644 --- a/.github/workflows/tests-backward-compat.yml +++ b/.github/workflows/tests-backward-compat.yml @@ -22,7 +22,7 @@ jobs: # Don't run if the PR is from Dependabot, as it doesn't have access to the repository's secrets. # Dependabot also only checks for GitHub action dependencies, so it's not necessary to run # Plugin tests. - if: github.actor != 'dependabot[bot] + if: github.actor != 'dependabot[bot]' # Environment Variables. # Accessible by using ${{ env.NAME }} diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index dc845394a..53c9ae07e 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -22,7 +22,7 @@ jobs: # Don't run if the PR is from Dependabot, as it doesn't have access to the repository's secrets. # Dependabot also only checks for GitHub action dependencies, so it's not necessary to run # Plugin tests. - if: github.actor != 'dependabot[bot] + if: github.actor != 'dependabot[bot]' # Environment Variables. # Accessible by using ${{ env.NAME }}