Skip to content

Commit 68047b1

Browse files
committed
added failsafe for auto update of jshell version
1 parent 0f82238 commit 68047b1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/update-jshell-image-version.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,12 @@ jobs:
5151
git config --global user.email "github-actions[bot]@users.noreply.github.com"
5252
5353
branch_name="update-jshell-java-version-$latest_version"
54+
55+
if gh api repos/Together-Java/JShellPlaygroundBackend/branches/$branch_name >/dev/null 2>&1
56+
then
57+
return 0
58+
fi
59+
5460
git checkout -b "$branch_name"
5561
5662
git add "$gradle_file"

0 commit comments

Comments
 (0)