Skip to content

Commit

Permalink
Merge pull request #385 from DUNE-DAQ/amogan/slack_webhook_integration
Browse files Browse the repository at this point in the history
Slack webhook integration
  • Loading branch information
andrewmogan authored Sep 3, 2024
2 parents 5eae128 + 519a199 commit 94a86a2
Show file tree
Hide file tree
Showing 4 changed files with 75 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/build-nightly-release-alma9.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
19 changes: 19 additions & 0 deletions .github/workflows/build-v4-release-alma9.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
19 changes: 19 additions & 0 deletions .github/workflows/nightly-v4-integtest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
18 changes: 18 additions & 0 deletions .github/workflows/nightly-v5-integtest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit 94a86a2

Please sign in to comment.