Skip to content

Commit

Permalink
Add Slack message step to nightly builds
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewmogan committed Sep 3, 2024
1 parent 8fb8488 commit 519a199
Show file tree
Hide file tree
Showing 2 changed files with 38 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/[email protected]
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/[email protected]
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 519a199

Please sign in to comment.