Skip to content

Commit b30b4e0

Browse files
committed
ci: ensure PR check workflow run on dependabot changes
Signed-off-by: vprashar2929 <[email protected]>
1 parent fca6868 commit b30b4e0

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

.github/workflows/pr-checks.yaml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ jobs:
6464

6565
vet:
6666
needs: check-changes
67-
if: needs.check-changes.outputs.changes == 'true'
67+
if: needs.check-changes.outputs.changes == 'true' || github.actor == 'dependabot[bot]'
6868
runs-on: ubuntu-latest-8-cores
6969
steps:
7070
- name: Checkout source
@@ -84,7 +84,7 @@ jobs:
8484

8585
go-mod-tidy:
8686
needs: check-changes
87-
if: needs.check-changes.outputs.changes == 'true'
87+
if: needs.check-changes.outputs.changes == 'true' || github.actor == 'dependabot[bot]'
8888
runs-on: ubuntu-latest-8-cores
8989
steps:
9090
- name: Checkout source
@@ -106,7 +106,7 @@ jobs:
106106
107107
escapes_detect:
108108
needs: check-changes
109-
if: needs.check-changes.outputs.changes == 'true'
109+
if: needs.check-changes.outputs.changes == 'true' || github.actor == 'dependabot[bot]'
110110
runs-on: ubuntu-latest-8-cores
111111
steps:
112112
- name: Checkout source
@@ -126,7 +126,7 @@ jobs:
126126

127127
golangci:
128128
needs: check-changes
129-
if: needs.check-changes.outputs.changes == 'true'
129+
if: needs.check-changes.outputs.changes == 'true' || github.actor == 'dependabot[bot]'
130130
permissions:
131131
contents: read
132132
# NOTE: allow read access to pull request. Use with `only-new-issues` option.
@@ -152,7 +152,7 @@ jobs:
152152

153153
vulnerability_detect:
154154
needs: check-changes
155-
if: needs.check-changes.outputs.changes == 'true'
155+
if: needs.check-changes.outputs.changes == 'true' || github.actor == 'dependabot[bot]'
156156
runs-on: ubuntu-latest-8-cores
157157
steps:
158158
- name: Checkout source
@@ -186,6 +186,7 @@ jobs:
186186
run: pre-commit run --all-files
187187

188188
commit-msg-check:
189+
if: github.actor != 'dependabot[bot]'
189190
runs-on: ubuntu-latest
190191
steps:
191192
- name: Checkout source
@@ -204,7 +205,7 @@ jobs:
204205

205206
test-and-codecov:
206207
needs: check-changes
207-
if: needs.check-changes.outputs.changes == 'true'
208+
if: needs.check-changes.outputs.changes == 'true' || github.actor == 'dependabot[bot]'
208209
uses: ./.github/workflows/test-and-codecov.yaml
209210
secrets:
210211
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)