File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 19
19
- name : Ensure no commits are signed by GitHub
20
20
shell : bash {0}
21
21
run : |
22
+ dependabot=($(git rev-list --no-merges --author="dependabot" origin/${{ github.base_ref }}..${{ github.sha }}))
23
+
22
24
git rev-list --no-merges origin/${{ github.base_ref }}..${{ github.sha }} | while read -r commit; do
23
25
echo "checking $commit"
26
+ if printf "%s\n" "${dependabot[@]}" | grep -qxF -- "$commit"; then
27
+ echo "skipping dependabot commit
28
+ continue
29
+ fi
30
+
24
31
if (git verify-commit -v --raw $commit || true) 2>&1 | grep -q B5690EEEBB952194; then
25
- echo "Please squash GitHub commit $commit into the respective change."; exit 1;
32
+ echo "Please squash GitHub commit $commit into the respective change."; exit 1;
26
33
fi
27
34
done
You can’t perform that action at this time.
0 commit comments