From c264e0013922b5d99fe5534034bfa3c9a6521125 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 22 Mar 2026 14:44:38 +0000 Subject: [PATCH] fix: skip sync jobs on dependabot branches even when actor is not dependabot Co-authored-by: rajbos <6085745+rajbos@users.noreply.github.com> Agent-Logs-Url: https://github.com/rajbos/github-copilot-token-usage/sessions/7941a3f9-808d-4272-ba3b-3f91ecc965fa --- .github/workflows/check-models.yml | 2 +- .github/workflows/sync-toolnames.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/check-models.yml b/.github/workflows/check-models.yml index cc9f0a21..d7148283 100644 --- a/.github/workflows/check-models.yml +++ b/.github/workflows/check-models.yml @@ -18,7 +18,7 @@ permissions: jobs: sync-models: runs-on: ubuntu-latest - if: github.actor != 'dependabot[bot]' + if: github.actor != 'dependabot[bot]' && !startsWith(github.ref_name, 'dependabot/') permissions: contents: write # Need write permission to create branches and push changes pull-requests: write # Need write permission to create PRs diff --git a/.github/workflows/sync-toolnames.yml b/.github/workflows/sync-toolnames.yml index f2152a11..d3fa78ef 100644 --- a/.github/workflows/sync-toolnames.yml +++ b/.github/workflows/sync-toolnames.yml @@ -15,7 +15,7 @@ permissions: jobs: sync-toolnames: runs-on: ubuntu-latest - if: github.actor != 'dependabot[bot]' + if: github.actor != 'dependabot[bot]' && !startsWith(github.ref_name, 'dependabot/') permissions: contents: write # Need write permission to create branches and push changes pull-requests: write # Need write permission to create PRs