diff --git a/.github/workflows/dev-ci-cd.yaml b/.github/workflows/dev-ci-cd.yaml index 53d5d0428..fe3c38d0e 100644 --- a/.github/workflows/dev-ci-cd.yaml +++ b/.github/workflows/dev-ci-cd.yaml @@ -58,9 +58,10 @@ jobs: run: ./gradlew jib -Pversion=latest-rc - name: Notify build failure to slack + if: ${{ failure() }} run: | CURRENT_GITHUB_ACTION_RUN_URL="${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" - curl -X POST -H 'Content-type: application/json' --data "{\"text\":\"[DEV] backend CI failed. (<$CURRENT_GITHUB_ACTION_RUN_URL|github action run url>)\"}' https://hooks.slack.com/services/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 + curl -X POST -H 'Content-type: application/json' --data "{\"text\":\"[DEV] backend CI failed. (<$CURRENT_GITHUB_ACTION_RUN_URL|github action run url>)\"}" https://hooks.slack.com/services/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 frontend-ci: runs-on: ubuntu-latest @@ -98,9 +99,10 @@ jobs: run: ./docker-push.sh dev - name: Notify build failure to slack + if: ${{ failure() }} run: | CURRENT_GITHUB_ACTION_RUN_URL="${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" - curl -X POST -H 'Content-type: application/json' --data "{\"text\":\"[DEV] frontend CI failed. (<$CURRENT_GITHUB_ACTION_RUN_URL|github action run url>)\"}' https://hooks.slack.com/services/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 + curl -X POST -H 'Content-type: application/json' --data "{\"text\":\"[DEV] frontend CI failed. (<$CURRENT_GITHUB_ACTION_RUN_URL|github action run url>)\"}" https://hooks.slack.com/services/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 cd: runs-on: ubuntu-latest @@ -146,6 +148,7 @@ jobs: kubectl rollout restart deploy/scc-admin-frontend -n dev - name: Notify build failure to slack + if: ${{ failure() }} run: | CURRENT_GITHUB_ACTION_RUN_URL="${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" - curl -X POST -H 'Content-type: application/json' --data "{\"text\":\"[DEV] scc-server CD failed. (<$CURRENT_GITHUB_ACTION_RUN_URL|github action run url>)\"}' https://hooks.slack.com/services/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 + curl -X POST -H 'Content-type: application/json' --data "{\"text\":\"[DEV] scc-server CD failed. (<$CURRENT_GITHUB_ACTION_RUN_URL|github action run url>)\"}" https://hooks.slack.com/services/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