Skip to content

Commit

Permalink
Sync Slack message option across v4 and v5 nightlies
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewmogan committed Oct 3, 2024
1 parent c611c43 commit 70e2bd6
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/build-nightly-release-alma9.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ on:
cvmfs-deployment:
description: 'whether to deploy the release to cvmfs'
default: 'no'
send-slack-message:
description: 'whether to send a message to #daq-release-notifications on failure'
default: 'no'

jobs:
make_nightly_tag:
Expand Down Expand Up @@ -274,7 +277,7 @@ jobs:
rm -rf $unique_name
send_slack_message:
if: failure()
if: failure() || (github.event_name == 'workflow_dispatch' && github.event.inputs.send-slack-message == 'yes')
runs-on: daq
name: send slack message
needs: publish_to_cvmfs
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/build-v4-release-alma9.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ on:
cvmfs-deployment:
description: 'whether to deploy the release to cvmfs'
default: 'no'
send-slack-message:
description: 'whether to send a message to #daq-release-notifications on failure'
default: 'no'

jobs:
make_nightly_tag:
Expand Down Expand Up @@ -274,7 +277,7 @@ jobs:
rm -rf $unique_name
send_slack_message:
if: failure()
if: failure() || (github.event_name == 'workflow_dispatch' && github.event.inputs.send-slack-message == 'yes')
runs-on: daq
name: send slack message
needs: publish_to_cvmfs
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/nightly-v4-integtest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ on:
- cron: "0 9 * * 0"

workflow_dispatch:
inputs:
send-slack-message:
description: 'whether to send a message to #daq-release-notifications on failure'
default: 'no'


jobs:
Expand Down Expand Up @@ -104,7 +108,7 @@ jobs:
/home/nfs/dunedaq/kill_stale_gunicorn_processes.sh
send_slack_message:
if: failure()
if: failure() || (github.event_name == 'workflow_dispatch' && github.event.inputs.send-slack-message == 'yes')
runs-on: daq
name: send slack message
needs: integration_tests
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/nightly-v5-integtest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
workflow_dispatch:
inputs:
send-slack-message:
description: 'Send message to daq-release-notifications on failure?'
description: 'whether to send a message to #daq-release-notifications on failure'
default: 'no'


Expand Down

0 comments on commit 70e2bd6

Please sign in to comment.