-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Slack message step to nightly builds
- Loading branch information
1 parent
8fb8488
commit 519a199
Showing
2 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 }} |