Skip to content

High performance self-hosted photo and video management solution.

fix: use correct bot in weblate-checks (#21808)

bo0tzz1213f6df106d
diff --git a/.github/workflows/weblate-lock.yml b/.github/workflows/weblate-lock.yml
index 58b11e00cf..b6cbc04442 100644
--- a/.github/workflows/weblate-lock.yml
+++ b/.github/workflows/weblate-lock.yml
@@ -7,6 +7,9 @@ on:
permissions: {}
+env:
+ BOT_NAME: immich-push-o-matic
+
jobs:
pre-job:
runs-on: ubuntu-latest
@@ -39,7 +42,7 @@ jobs:
GH_TOKEN: ${{ github.token }}
run: |
# Then check for APPROVED by the bot, if absent fail
- gh pr view "$PR_NUMBER" --repo "$GITHUB_REPOSITORY" --json reviews | jq -e '.reviews | map(select(.author.login == "github-actions[bot]" and .state == "APPROVED")) | length > 0' \
+ gh pr view "$PR_NUMBER" --repo "$GITHUB_REPOSITORY" --json reviews | jq -e '.reviews | map(select(.author.login == env.BOT_NAME and .state == "APPROVED")) | length > 0' \
|| (echo "The push-o-matic bot has not approved this PR yet" && exit 1)
success-check-lock: