From 24da25dbbf48c18cab7b8615cd5d123ff2d2eaa1 Mon Sep 17 00:00:00 2001 From: Zack Pollard Date: Mon, 3 Mar 2025 12:22:33 +0000 Subject: [PATCH] ci: don't check weblate lock on chore/translations and add success job (#16533) --- .github/workflows/weblate-lock.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/weblate-lock.yml b/.github/workflows/weblate-lock.yml index 317dd7c33a1..75f494395f9 100644 --- a/.github/workflows/weblate-lock.yml +++ b/.github/workflows/weblate-lock.yml @@ -8,7 +8,9 @@ on: jobs: enforce-lock: + name: Check Weblate Lock runs-on: ubuntu-latest + if: github.head_ref != 'chore/translations' steps: - name: Check weblate lock run: | @@ -23,3 +25,15 @@ jobs: - name: Fail if existing weblate PR if: ${{ steps.find-pr.outputs.number }} run: exit 1 + success-check-lock: + name: Weblate Lock Check Success + needs: [ enforce-lock ] + runs-on: ubuntu-latest + if: always() + steps: + - name: Any jobs failed? + if: ${{ contains(needs.*.result, 'failure') }} + run: exit 1 + - name: All jobs passed or skipped + if: ${{ !(contains(needs.*.result, 'failure')) }} + run: echo "All jobs passed or skipped" && echo "${{ toJSON(needs.*.result) }}"