Skip to content

Commit f82509d

Browse files
Copilotrajbos
andauthored
fix: skip sync jobs on dependabot branches even when actor is not dependabot (#467)
Agent-Logs-Url: https://github.com/rajbos/github-copilot-token-usage/sessions/7941a3f9-808d-4272-ba3b-3f91ecc965fa Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: rajbos <6085745+rajbos@users.noreply.github.com> Co-authored-by: Rob Bos <rajbos@users.noreply.github.com>
1 parent bf1bf89 commit f82509d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/check-models.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ permissions:
1818
jobs:
1919
sync-models:
2020
runs-on: ubuntu-latest
21-
if: github.actor != 'dependabot[bot]'
21+
if: github.actor != 'dependabot[bot]' && !startsWith(github.ref_name, 'dependabot/')
2222
permissions:
2323
contents: write # Need write permission to create branches and push changes
2424
pull-requests: write # Need write permission to create PRs

.github/workflows/sync-toolnames.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ permissions:
1515
jobs:
1616
sync-toolnames:
1717
runs-on: ubuntu-latest
18-
if: github.actor != 'dependabot[bot]'
18+
if: github.actor != 'dependabot[bot]' && !startsWith(github.ref_name, 'dependabot/')
1919
permissions:
2020
contents: write # Need write permission to create branches and push changes
2121
pull-requests: write # Need write permission to create PRs

0 commit comments

Comments
 (0)