Skip to content

Commit 5e72d0f

Browse files
authored
Don't run CI jobs for push by Dependabot (#1353)
Dependabot creates a PR automatically. So we can run CI jobs only for `pull_request` for Dependabot.
1 parent 8d07737 commit 5e72d0f

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

.github/workflows/lint.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
name: Lint
22

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
branches:
6+
- '**'
7+
- '!dependabot/**'
8+
pull_request:
49

510
permissions: # added using https://github.com/step-security/secure-workflows
611
contents: read

.github/workflows/test.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
name: Test
22

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
branches:
6+
- '**'
7+
- '!dependabot/**'
8+
pull_request:
49

510
permissions: # added using https://github.com/step-security/secure-workflows
611
contents: read

0 commit comments

Comments
 (0)