ci: Fix syntax

This commit is contained in:
Iván Ovejero 2023-08-01 13:07:28 +02:00
parent 7f299e3d48
commit 31f4b85760

View file

@ -118,11 +118,14 @@ jobs:
notify-on-failure: notify-on-failure:
name: Notify Slack on failure name: Notify Slack on failure
runs-on: ubuntu-latest
needs: [unit-test, lint] needs: [unit-test, lint]
uses: act10ns/slack@v2.0.0 steps:
if: failure() - name: Notify Slack on failure
with: uses: act10ns/slack@v2.0.0
status: ${{ job.status }} if: failure()
channel: '#updates-build-alerts' with:
webhook-url: ${{ secrets.SLACK_WEBHOOK_URL }} status: ${{ job.status }}
message: Master branch (build or test or lint) failed (${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) channel: '#updates-build-alerts'
webhook-url: ${{ secrets.SLACK_WEBHOOK_URL }}
message: Master branch (build or test or lint) failed (${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})