Skip to content

Commit e1cd691

Browse files
committed
dx(rest-docs): Fix bug when not found
1 parent 59934cd commit e1cd691

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/sync-rest-api-docs.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ jobs:
3636
# If a stable camunda branch exists for the
3737
# next minor release, use it. Otherwise, use main.
3838
stable_branch="stable/$next_minor_release"
39-
if git ls-remote --heads https://github.com/camunda/camunda $stable_branch; then
40-
echo "Found a stable branch: origin/$stable_branch"
39+
if git ls-remote --exit-code --heads https://github.com/camunda/camunda $stable_branch; then
40+
echo "Found a stable branch: $stable_branch"
4141
echo "camunda_branch=$stable_branch" >> "$GITHUB_OUTPUT"
4242
else
4343
echo "No stable branch for version $next_minor_release, using main"

0 commit comments

Comments
 (0)