Skip to content

Commit e83a09e

Browse files
authored
Merge pull request #112 from Kit/skip-actions-dependabot-pr
Skip Actions on Dependabot PRs
2 parents 00e318a + 3f7e5aa commit e83a09e

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/coding-standards.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ jobs:
1919
# @see: https://github.com/actions/virtual-environments
2020
runs-on: ubuntu-latest
2121

22+
# Don't run if the PR is from Dependabot, as it doesn't have access to the repository's secrets.
23+
# Dependabot also only checks for GitHub action dependencies, so it's not necessary to run
24+
# Plugin tests.
25+
if: github.actor != 'dependabot[bot]'
26+
2227
# Environment Variables.
2328
# Accessible by using ${{ env.NAME }}
2429
# Use ${{ secrets.NAME }} to include any GitHub Secrets in ${{ env.NAME }}

.github/workflows/tests.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ jobs:
1919
# @see: https://github.com/actions/virtual-environments
2020
runs-on: ubuntu-latest
2121

22+
# Don't run if the PR is from Dependabot, as it doesn't have access to the repository's secrets.
23+
# Dependabot also only checks for GitHub action dependencies, so it's not necessary to run
24+
# Plugin tests.
25+
if: github.actor != 'dependabot[bot]'
26+
2227
# Environment Variables.
2328
# Accessible by using ${{ env.NAME }}
2429
# Use ${{ secrets.NAME }} to include any GitHub Secrets in ${{ env.NAME }}

0 commit comments

Comments
 (0)