ci: fix build workflow conditions

This commit is contained in:
Nicolas Giard 2023-04-24 17:59:30 -04:00 committed by GitHub
parent d9d7035ace
commit 27ae8a6734
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -415,7 +415,7 @@ jobs:
steps:
- name: Notify on Slack (Success)
if: ${{ success() }}
if: ${{ contains(join(needs.*.result, ','), 'failure') == 'false' }}
uses: slackapi/slack-github-action@v1.23.0
with:
channel-id: ${{ secrets.SLACK_GH_BUILDS_CHANNEL_ID }}
@ -424,7 +424,6 @@ jobs:
"text": "Datatracker Build <https://github.com/ietf-tools/datatracker/actions/runs/${{ github.run_id }}|${{ env.PKG_VERSION }}> by ${{ github.triggering_actor }} - <@${{ secrets.SLACK_UID_RJSPARKS }}>",
"attachments": [
{
"pretext": "Build completed",
"color": "28a745",
"fields": [
{
@ -439,7 +438,7 @@ jobs:
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_GH_BOT }}
- name: Notify on Slack (Failure)
if: ${{ failure() }}
if: ${{ contains(join(needs.*.result, ','), 'failure') == 'true' }}
uses: slackapi/slack-github-action@v1.23.0
with:
channel-id: ${{ secrets.SLACK_GH_BUILDS_CHANNEL_ID }}
@ -448,7 +447,6 @@ jobs:
"text": "Datatracker Build <https://github.com/ietf-tools/datatracker/actions/runs/${{ github.run_id }}|${{ env.PKG_VERSION }}> by ${{ github.triggering_actor }} - <@${{ secrets.SLACK_UID_RJSPARKS }}>",
"attachments": [
{
"pretext": "Build FAILED",
"color": "a82929",
"fields": [
{