summaryrefslogtreecommitdiffhomepage
path: root/.github/workflows
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/generate.yml6
1 files changed, 5 insertions, 1 deletions
diff --git a/.github/workflows/generate.yml b/.github/workflows/generate.yml
index 15c99f402..39263200c 100644
--- a/.github/workflows/generate.yml
+++ b/.github/workflows/generate.yml
@@ -35,8 +35,12 @@ jobs:
- name: Commit and push
run: |
+ if [ -z "$(git status --porcelain)" ]; then
+ echo "No changes to commit"
+ exit 0
+ fi
git add -A
- git commit -m "chore: generate" --allow-empty
+ git commit -m "chore: generate"
git push origin HEAD:${{ github.ref_name }} --no-verify
# if ! git push origin HEAD:${{ github.event.pull_request.head.ref || github.ref_name }} --no-verify; then
# echo ""