From 7cf04f0561dc82634224e5cedd023d383343e5c6 Mon Sep 17 00:00:00 2001 From: Sutou Kouhei Date: Tue, 29 Apr 2025 11:30:40 +0900 Subject: [PATCH] Don't run CI jobs for push by Dependabot Dependabot creates a PR automatically. So we can run CI jobs only for `pull_request` for Dependabot. --- .github/workflows/lint.yml | 7 ++++++- .github/workflows/test.yml | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 571fa8d5ce..27ea686ca1 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -1,6 +1,11 @@ name: Lint -on: [push, pull_request] +on: + push: + branches: + - '**' + - '!dependabot/**' + pull_request: permissions: # added using https://github.com/step-security/secure-workflows contents: read diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9a53d22107..ce0b9aedef 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,6 +1,11 @@ name: Test -on: [push, pull_request] +on: + push: + branches: + - '**' + - '!dependabot/**' + pull_request: permissions: # added using https://github.com/step-security/secure-workflows contents: read