Skip to content

Commit 552eea0

Browse files
committed
fix(ci): stop dependabot from running some push checks
1 parent 89dedde commit 552eea0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@
115115
},
116116
{
117117
"name": "Validate push commit messages",
118-
"if": "github.event_name == 'push' && (github.repository_owner != 'tjcsl' || github.ref != 'refs/heads/master' || github.ref != 'refs/heads/dev')",
118+
"if": "github.event_name == 'push' && (github.repository_owner != 'tjcsl' || github.ref != 'refs/heads/master' || github.ref != 'refs/heads/dev') && github.actor != 'dependabot[bot]'",
119119
"run": "git fetch origin ${{ github.event.before }} && ./scripts/validate-commit-messages.py ${{ github.event.before }}..${{ github.event.after }}"
120120
},
121121
{
@@ -269,7 +269,7 @@
269269
{
270270
"name": "Report coverage to Codacy",
271271
"uses": "codacy/codacy-coverage-reporter-action@master",
272-
"if": "github.repository_owner == 'tjcsl' && github.event_name != 'pull_request'",
272+
"if": "github.repository_owner == 'tjcsl' && github.event_name != 'pull_request' && github.actor != 'dependabot[bot]'",
273273
"with": {
274274
"coverage-reports": "coverage.xml",
275275
"project-token": "${{ secrets.CODACY_PROJECT_TOKEN }}"

ci/spec.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ jobs:
118118
run: ./scripts/validate-commit-messages.py ${{ github.event.pull_request.base.sha }}..${{ github.event.pull_request.head.sha }}
119119
- name: Validate push commit messages
120120
# Validate commit messages for forks and branches that aren't dev or master
121-
if: "github.event_name == 'push' && (github.repository_owner != 'tjcsl' || github.ref != 'refs/heads/master' || github.ref != 'refs/heads/dev')"
121+
if: "github.event_name == 'push' && (github.repository_owner != 'tjcsl' || github.ref != 'refs/heads/master' || github.ref != 'refs/heads/dev') && github.actor != 'dependabot[bot]'"
122122
run: 'git fetch origin ${{ github.event.before }} && ./scripts/validate-commit-messages.py ${{ github.event.before }}..${{ github.event.after }}'
123123

124124
# Build/push docs
@@ -240,7 +240,7 @@ jobs:
240240
run: coverage xml
241241
- name: Report coverage to Codacy
242242
uses: codacy/codacy-coverage-reporter-action@master
243-
if: github.repository_owner == 'tjcsl' && github.event_name != 'pull_request'
243+
if: github.repository_owner == 'tjcsl' && github.event_name != 'pull_request' && github.actor != 'dependabot[bot]'
244244
with:
245245
coverage-reports: coverage.xml
246246
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}

0 commit comments

Comments
 (0)