We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c20404d commit 37cf57aCopy full SHA for 37cf57a
.github/workflows/blackduck.yml
@@ -54,6 +54,10 @@ jobs:
54
git config user.name "github-actions[bot]"
55
git config user.email "github-actions[bot]@users.noreply.github.com"
56
git add NOTICES
57
- git commit -m "Update NOTICES after go.mod change" || echo "No changes to commit"
58
- git push
+ if git diff --cached --quiet; then
+ echo "No changes to commit"
59
+ else
60
+ git commit -m "Update NOTICES after go.mod change"
61
+ git push
62
+ fi
63
shell: bash -euo pipefail -c "source nix.source && exec bash {0}"
0 commit comments