Skip to content

Commit

Permalink
QA-6145 removed commented lines
Browse files Browse the repository at this point in the history
  • Loading branch information
kbo001 committed Feb 28, 2024
1 parent 88db1d1 commit 15afd33
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/request_api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,25 +109,20 @@ jobs:
let FLAG = ''
if (context.event_name == 'repository_dispatch' && CC_ENV == 'production') {
SLACK_WEBHOOK_URL = '${{ secrets.SLACK_WEBHOOK_URL_PROD_RESULTS }}'
# FLAG = 'true'
console.log( "Prod deploy")
} else if (context.event_name != 'repository_dispatch' && CC_ENV == 'production' && JOB_STATUS == 'failure') {
SLACK_WEBHOOK_URL = '${{ secrets.SLACK_WEBHOOK_URL_SMOKE }}'
# FLAG = 'true'
console.log( "Not Prod deploy but Prof failure")
} else if (CC_ENV == 'staging' && JOB_STATUS == 'failure') {
SLACK_WEBHOOK_URL = '${{ secrets.SLACK_WEBHOOK_URL_SMOKE }}'
# FLAG = 'true'
console.log("Staging Failure")
} else {
SLACK_WEBHOOK_URL = ''
# FLAG = 'false'
console.log("No notification sent")
}
return {
"SLACK_WEBHOOK_URL" : SLACK_WEBHOOK_URL
# "FLAG" : FLAG
}
- name: Post to Slack channel
Expand Down

0 comments on commit 15afd33

Please sign in to comment.