-
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.
- Loading branch information
1 parent
fc11bc8
commit 3ef6bae
Showing
4 changed files
with
23 additions
and
5 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 |
---|---|---|
|
@@ -26,6 +26,10 @@ on: | |
type: boolean | ||
required: false | ||
default: true | ||
send_to_slack: | ||
type: boolean | ||
required: false | ||
default: false | ||
|
||
jobs: | ||
setup-devices: | ||
|
@@ -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: | ||
|
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 |
---|---|---|
|
@@ -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' | ||
|
||
|
@@ -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: | ||
|
@@ -72,9 +76,10 @@ jobs: | |
git push --set-upstream origin update-input --force | ||
- name: Create Pull Request | ||
if: ${{ failure() && (github.event_name == 'schedule' || inputs.create_pr == true) }} | ||
run: | | ||
apk add github-cli | ||
gh pr create --base "test-all-apps" --head "update-input" --title "[BOT] Update input file" --body "Input file has changed ! Please review changes !" | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GITHUB_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} | ||
|
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 |
---|---|---|
|
@@ -23,6 +23,10 @@ on: | |
type: boolean | ||
required: false | ||
default: true | ||
send_to_slack: | ||
type: boolean | ||
required: false | ||
default: false | ||
|
||
jobs: | ||
setup-devices: | ||
|
@@ -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: | ||
|
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 |
---|---|---|
|
@@ -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 | ||
|
@@ -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: | ||
|