mirror of
https://github.com/bitwarden/server.git
synced 2025-05-20 19:14:32 -05:00
update failure stpes (#3870)
This commit is contained in:
parent
2dc068a983
commit
9d7e1ccc41
33
.github/workflows/build.yml
vendored
33
.github/workflows/build.yml
vendored
@ -540,36 +540,11 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Check if any job failed
|
- name: Check if any job failed
|
||||||
if: |
|
if: |
|
||||||
github.ref == 'refs/heads/main'
|
(github.ref == 'refs/heads/main'
|
||||||
|| github.ref == 'refs/heads/rc'
|
|| github.ref == 'refs/heads/rc'
|
||||||
|| github.ref == 'refs/heads/hotfix-rc'
|
|| github.ref == 'refs/heads/hotfix-rc')
|
||||||
env:
|
&& contains(needs.*.result, 'failure')
|
||||||
LINT_STATUS: ${{ needs.lint.result }}
|
run: exit 1
|
||||||
TESTING_STATUS: ${{ needs.testing.result }}
|
|
||||||
BUILD_ARTIFACTS_STATUS: ${{ needs.build-artifacts.result }}
|
|
||||||
BUILD_DOCKER_STATUS: ${{ needs.build-docker.result }}
|
|
||||||
UPLOAD_STATUS: ${{ needs.upload.result }}
|
|
||||||
BUILD_MSSQLMIGRATORUTILITY_STATUS: ${{ needs.build-mssqlmigratorutility.result }}
|
|
||||||
TRIGGER_SELF_HOST_BUILD_STATUS: ${{ needs.self-host-build.result }}
|
|
||||||
TRIGGER_K8S_DEPLOY_STATUS: ${{ needs.trigger-k8s-deploy.result }}
|
|
||||||
run: |
|
|
||||||
if [ "$LINT_STATUS" = "failure" ]; then
|
|
||||||
exit 1
|
|
||||||
elif [ "$TESTING_STATUS" = "failure" ]; then
|
|
||||||
exit 1
|
|
||||||
elif [ "$BUILD_ARTIFACTS_STATUS" = "failure" ]; then
|
|
||||||
exit 1
|
|
||||||
elif [ "$BUILD_DOCKER_STATUS" = "failure" ]; then
|
|
||||||
exit 1
|
|
||||||
elif [ "$UPLOAD_STATUS" = "failure" ]; then
|
|
||||||
exit 1
|
|
||||||
elif [ "$BUILD_MSSQLMIGRATORUTILITY_STATUS" = "failure" ]; then
|
|
||||||
exit 1
|
|
||||||
elif [ "$TRIGGER_SELF_HOST_BUILD_STATUS" = "failure" ]; then
|
|
||||||
exit 1
|
|
||||||
elif [ "$TRIGGER_K8S_DEPLOY_STATUS" = "failure" ]; then
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
- name: Log in to Azure - CI subscription
|
- name: Log in to Azure - CI subscription
|
||||||
uses: Azure/login@92a5484dfaf04ca78a94597f4f19fea633851fa2 # v1.4.7
|
uses: Azure/login@92a5484dfaf04ca78a94597f4f19fea633851fa2 # v1.4.7
|
||||||
|
15
.github/workflows/container-registry-purge.yml
vendored
15
.github/workflows/container-registry-purge.yml
vendored
@ -69,20 +69,15 @@ jobs:
|
|||||||
name: Check for failures
|
name: Check for failures
|
||||||
if: always()
|
if: always()
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
needs:
|
needs: [purge]
|
||||||
- purge
|
|
||||||
steps:
|
steps:
|
||||||
- name: Check if any job failed
|
- name: Check if any job failed
|
||||||
if: |
|
if: |
|
||||||
github.ref == 'refs/heads/main'
|
(github.ref == 'refs/heads/main'
|
||||||
|| github.ref == 'refs/heads/rc'
|
|| github.ref == 'refs/heads/rc'
|
||||||
|| github.ref == 'refs/heads/hotfix-rc'
|
|| github.ref == 'refs/heads/hotfix-rc')
|
||||||
env:
|
&& contains(needs.*.result, 'failure')
|
||||||
PURGE_STATUS: ${{ needs.purge.result }}
|
run: exit 1
|
||||||
run: |
|
|
||||||
if [ "$PURGE_STATUS" = "failure" ]; then
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
- name: Log in to Azure - CI subscription
|
- name: Log in to Azure - CI subscription
|
||||||
uses: Azure/login@92a5484dfaf04ca78a94597f4f19fea633851fa2 # v1.4.7
|
uses: Azure/login@92a5484dfaf04ca78a94597f4f19fea633851fa2 # v1.4.7
|
||||||
|
Loading…
x
Reference in New Issue
Block a user