Skip to content

Commit 17bfd1e

Browse files
authored
Merge pull request #632 from reubenmiller/ci-ignore-test-runs-on-dependabot
ci: update test-examples job to skip dependabot PRs
2 parents 00a6df6 + b1592b6 commit 17bfd1e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/main.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,10 @@ jobs:
8686
test-examples:
8787
runs-on: ${{ matrix.os }}
8888
needs: [build]
89-
# Skip for fork PRs — those lack secrets access and must use the "/test"
90-
# slash command instead (see slash-command-dispatch.yml).
89+
# Skip for fork PRs and dependabot PRs — those lack secrets access and must
90+
# use the "/test" slash command instead (see slash-command-dispatch.yml).
9191
# PRs from branches within this repo run normally with secrets.
92-
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.fork == false
92+
if: github.event_name != 'pull_request' || (github.event.pull_request.head.repo.fork == false && github.actor != 'dependabot[bot]')
9393
env:
9494
C8Y_HOST: ${{ secrets.C8Y_HOST }}
9595
C8Y_TENANT: ${{ secrets.C8Y_TENANT }}

0 commit comments

Comments
 (0)