Skip to content

Commit 1fb9e66

Browse files
committed
ci(audits): actually commit when necessary
1 parent 161c04d commit 1fb9e66

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/audits.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,6 @@ jobs:
185185
run: |
186186
git config user.name "github-actions[bot]"
187187
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
188-
git add .
189-
git commit -m "docs(implementations): audit report [skip ci]" || echo "::notice::Nothing new to report" && exit 0
190-
git push
188+
[ -z "$(git status --porcelain)" ] \
189+
&& echo "::notice::Nothing new to report" \
190+
|| (git add . && git commit -m "docs(implementations): audit report [skip ci]" && git push)

0 commit comments

Comments
 (0)