Skip to content

Commit 37cf57a

Browse files
dasormeterCopilot
andauthored
Update .github/workflows/blackduck.yml
Co-authored-by: Copilot <[email protected]>
1 parent c20404d commit 37cf57a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/blackduck.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ jobs:
5454
git config user.name "github-actions[bot]"
5555
git config user.email "github-actions[bot]@users.noreply.github.com"
5656
git add NOTICES
57-
git commit -m "Update NOTICES after go.mod change" || echo "No changes to commit"
58-
git push
57+
if git diff --cached --quiet; then
58+
echo "No changes to commit"
59+
else
60+
git commit -m "Update NOTICES after go.mod change"
61+
git push
62+
fi
5963
shell: bash -euo pipefail -c "source nix.source && exec bash {0}"

0 commit comments

Comments
 (0)