diff --git a/.github/workflows/build-nightly-release-alma9.yml b/.github/workflows/build-nightly-release-alma9.yml index 8c22c44a..f5b51bce 100644 --- a/.github/workflows/build-nightly-release-alma9.yml +++ b/.github/workflows/build-nightly-release-alma9.yml @@ -272,3 +272,22 @@ jobs: ssh -o StrictHostKeyChecking=no -l cvmfsdunedaqdev oasiscfs05.fnal.gov "cvmfs_server publish dunedaq-development.opensciencegrid.org" rm -rf $unique_name + + send_slack_message: + if: failure() + runs-on: daq + name: send slack message + needs: publish_to_cvmfs + steps: + - name: Send JSON data to Slack workflow + id: slack + uses: slackapi/slack-github-action@v1.26.0 + with: + # Variables used by the Slack workflow + payload: | + { + "workflow_name": "${{ github.workflow }}", + "workflow_url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" + } + env: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} \ No newline at end of file diff --git a/.github/workflows/build-v4-release-alma9.yml b/.github/workflows/build-v4-release-alma9.yml index f4a4bcf5..91a3d5d5 100644 --- a/.github/workflows/build-v4-release-alma9.yml +++ b/.github/workflows/build-v4-release-alma9.yml @@ -269,3 +269,22 @@ jobs: ssh -o StrictHostKeyChecking=no -l cvmfsdunedaqdev oasiscfs05.fnal.gov "cvmfs_server publish dunedaq-development.opensciencegrid.org" rm -rf $unique_name + + send_slack_message: + if: failure() + runs-on: daq + name: send slack message + needs: publish_to_cvmfs + steps: + - name: Send JSON data to Slack workflow + id: slack + uses: slackapi/slack-github-action@v1.26.0 + with: + # Variables used by the Slack workflow + payload: | + { + "workflow_name": "${{ github.workflow }}", + "workflow_url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" + } + env: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} \ No newline at end of file diff --git a/.github/workflows/nightly-v4-integtest.yml b/.github/workflows/nightly-v4-integtest.yml index db4cd0c4..2adb34c8 100644 --- a/.github/workflows/nightly-v4-integtest.yml +++ b/.github/workflows/nightly-v4-integtest.yml @@ -98,3 +98,22 @@ jobs: - name: Run cleanup script run: | /home/nfs/dunedaq/kill_stale_gunicorn_processes.sh + + send_slack_message: + if: failure() + runs-on: daq + name: send slack message + needs: integration_tests + steps: + - name: Send JSON data to Slack workflow + id: slack + uses: slackapi/slack-github-action@v1.26.0 + with: + # Variables used by the Slack workflow + payload: | + { + "workflow_name": "${{ github.workflow }}", + "workflow_url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" + } + env: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} \ No newline at end of file diff --git a/.github/workflows/nightly-v5-integtest.yml b/.github/workflows/nightly-v5-integtest.yml index 314a53a8..4ce34be9 100644 --- a/.github/workflows/nightly-v5-integtest.yml +++ b/.github/workflows/nightly-v5-integtest.yml @@ -101,3 +101,21 @@ jobs: run: | /home/nfs/dunedaq/kill_stale_gunicorn_processes.sh + send_slack_message: + if: failure() + runs-on: daq + name: send slack message + needs: integration_tests + steps: + - name: Send JSON data to Slack workflow + id: slack + uses: slackapi/slack-github-action@v1.26.0 + with: + # Variables used by the Slack workflow + payload: | + { + "workflow_name": "${{ github.workflow }}", + "workflow_url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" + } + env: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} \ No newline at end of file