diff --git a/.github/workflows/nightly-v5-integtest.yml b/.github/workflows/nightly-v5-integtest.yml index 948d769e..f90d8446 100644 --- a/.github/workflows/nightly-v5-integtest.yml +++ b/.github/workflows/nightly-v5-integtest.yml @@ -43,7 +43,7 @@ jobs: uses: actions/checkout@v4 with: repository: DUNE-DAQ/listrev - ref: develop + ref: amogan/intentional_integtest_failure path: listrev - name: setup release and run tests @@ -104,15 +104,24 @@ jobs: name: send slack message needs: integration_tests steps: - - name: Send JSON data to Slack workflow + - name: Send custom JSON data to Slack workflow id: slack - uses: slackapi/slack-github-action@v1.26.0 + uses: slackapi/slack-github-action@v1.27.0 with: - # Variables used by the Slack workflow + # For posting a rich message using Block Kit payload: | { - "workflow_name": "${{ github.workflow }}", - "workflow_url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" + "text": "!!!GitHub Action Failure!!!", + "blocks": [ + { + "type": "section", + "text": { + "type": "mrkdwn", + "text": "The GitHub Action ${{ github.workflow }} has failed! For more information, see ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" + } + } + ] } env: - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} \ No newline at end of file + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_INCOMING_WEBHOOK_URL }} + SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK \ No newline at end of file