Skip to content

Commit 4460b32

Browse files
committed
don't fail if the submodule is at the same commit as the input
1 parent 1dcc1c5 commit 4460b32

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/submodule_auto_pr.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,9 @@ jobs:
7979
env:
8080
GH_TOKEN: ${{ secrets.DUCKDBLABS_BOT_TOKEN }}
8181
run: |
82-
# First commit and push
82+
# No need to do anything if the submodule is already at the given sha
83+
[[ `git status --porcelain -- external/duckdb` == "" ]] && exit 0
84+
# We have changes. Commit and push
8385
git add external/duckdb
8486
git commit -m "Bump submodule"
8587
git push --force origin vendoring-${{ github.ref_name }}

0 commit comments

Comments
 (0)