Skip to content

High performance self-hosted photo and video management solution.

fix: bad scripting in merge-translations (#21787)

bo0tzzf7d9215464c5
diff --git a/.github/workflows/merge-translations.yml b/.github/workflows/merge-translations.yml
index 1dafa50b75..52b17271ec 100644
--- a/.github/workflows/merge-translations.yml
+++ b/.github/workflows/merge-translations.yml
@@ -37,7 +37,10 @@ jobs:
echo "PR_NUMBER=$PR_NUMBER" >> $GITHUB_OUTPUT
echo "Selected PR $PR_NUMBER"
- echo "$PR" | jq -e '.[0].mergeable == "MERGEABLE"' || { echo "PR is not mergeable" ; exit 1 }
+ if ! echo "$PR" | jq -e '.[0].mergeable == "MERGEABLE"'; then
+ echo "PR is not mergeable"
+ exit 1
+ fi
- name: Generate a token
id: generate_token