GHA: correct failed build condition for slack notifications

This commit is contained in:
aboyko
2023-11-01 14:14:42 -04:00
parent 9e982d91c5
commit e39104b95a
2 changed files with 4 additions and 2 deletions

View File

@@ -101,7 +101,8 @@ jobs:
fi
notify-failure:
if: ${{ failure() }}
needs: [ eclipse-language-servers-build ]
if: ${{ always() && contains(needs.*.result, 'failure') }}
uses: ./.github/workflows/notify-failed-build.yml
with:
link: '[${{ github.run_id }}](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})'

View File

@@ -322,7 +322,8 @@ jobs:
aws s3 rm s3://dist.springsource.com/sts4-distro-ci-temp --recursive --exclude "*" --include "${{ needs.eclipse-distro-build.outputs.id }}/*"
notify-failure:
if: ${{ failure() }}
needs: [ eclipse-distro-build, sign-win-distros, sign-osx-distros, cleanup ]
if: ${{ always() && contains(needs.*.result, 'failure') }}
uses: ./.github/workflows/notify-failed-build.yml
with:
link: '[${{ github.run_id }}](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})'