Skip to content

Commit

Permalink
it
Browse files Browse the repository at this point in the history
  • Loading branch information
sgliner-ledger committed Oct 26, 2023
1 parent fc11bc8 commit d40eef5
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 4 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/build_all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ on:
type: boolean
required: false
default: true
send_to_slack:
type: boolean
required: false
default: false

jobs:
setup-devices:
Expand Down Expand Up @@ -563,7 +567,7 @@ jobs:
python3 scripts/output_scripts/slack.py --input_file full_build_output.json --output_file slack.json --key build --devices ${{ needs.setup-devices.outputs.names }}
- name: Send custom JSON data to Slack workflow
if: always() && ${{ github.event_name == 'schedule' }}
if: ${{ github.event_name == 'schedule' || inputs.send_to_slack == true }}
id: slack
uses: slackapi/[email protected]
with:
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/refresh_inputs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ on:
type: boolean
required: false
default: false
send_to_slack:
type: boolean
required: false
default: false
schedule:
- cron: '32 5 * * 3'

Expand Down Expand Up @@ -46,7 +50,7 @@ jobs:
echo "Files are the same!"
fi
- name: Send custom JSON data to Slack workflow
if: ${{ failure() && github.event_name == 'schedule' }}
if: ${{ failure() && (github.event_name == 'schedule' || inputs.send_to_slack == true) }}
id: slack
uses: slackapi/[email protected]
with:
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/scan_all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ on:
type: boolean
required: false
default: true
send_to_slack:
type: boolean
required: false
default: false

jobs:
setup-devices:
Expand Down Expand Up @@ -560,7 +564,7 @@ jobs:
python3 scripts/output_scripts/slack.py --input_file full_scan_output.json --output_file slack.json --key scan --devices ${{ needs.setup-devices.outputs.names }}
- name: Send custom JSON data to Slack workflow
if: always() && ${{ github.event_name == 'schedule' }}
if: ${{ github.event_name == 'schedule' || inputs.send_to_slack == true }}
id: slack
uses: slackapi/[email protected]
with:
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/test_all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ on:
required: false
default: true

send_to_slack:
type: boolean
required: false
default: false

jobs:
split-input-file:
name: Split input file
Expand Down Expand Up @@ -324,7 +329,7 @@ jobs:
python scripts/output_scripts/slack.py --input_file test_output.json --output_file slack.json --key test
- name: Send custom JSON data to Slack workflow
if: always() && ${{ github.event_name == 'schedule' }}
if: ${{ github.event_name == 'schedule' || inputs.send_to_slack == true }}
id: slack
uses: slackapi/[email protected]
with:
Expand Down

0 comments on commit d40eef5

Please sign in to comment.