Push only when there are changes
This commit is contained in:
parent
9fe306004b
commit
02817de72a
5
.github/workflows/copyright_notice.yml
vendored
5
.github/workflows/copyright_notice.yml
vendored
@ -25,9 +25,8 @@ jobs:
|
|||||||
|
|
||||||
if [ -n "$(git status --porcelain)" ]; then
|
if [ -n "$(git status --porcelain)" ]; then
|
||||||
echo "there are changes";
|
echo "there are changes";
|
||||||
|
git commit -m "Add copyright notice"
|
||||||
|
git push
|
||||||
else
|
else
|
||||||
echo "no changes";
|
echo "no changes";
|
||||||
fi
|
fi
|
||||||
git commit -m "Add copyright notice"
|
|
||||||
- name: Push changes
|
|
||||||
run: git push
|
|
Loading…
x
Reference in New Issue
Block a user