mirror of
https://github.com/immich-app/immich
synced 2025-06-07 23:31:04 +00:00
ci: don't check weblate lock on chore/translations and add success job (#16533)
This commit is contained in:
parent
9b842d4cca
commit
24da25dbbf
14
.github/workflows/weblate-lock.yml
vendored
14
.github/workflows/weblate-lock.yml
vendored
@ -8,7 +8,9 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
enforce-lock:
|
enforce-lock:
|
||||||
|
name: Check Weblate Lock
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
if: github.head_ref != 'chore/translations'
|
||||||
steps:
|
steps:
|
||||||
- name: Check weblate lock
|
- name: Check weblate lock
|
||||||
run: |
|
run: |
|
||||||
@ -23,3 +25,15 @@ jobs:
|
|||||||
- name: Fail if existing weblate PR
|
- name: Fail if existing weblate PR
|
||||||
if: ${{ steps.find-pr.outputs.number }}
|
if: ${{ steps.find-pr.outputs.number }}
|
||||||
run: exit 1
|
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) }}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user