Skip to content

Commit

Permalink
Merge pull request #777 from hmcts/DTSPO-19297-jobs-failing
Browse files Browse the repository at this point in the history
DTSPO-19297 Troubleshoot failing jobs
  • Loading branch information
ieuanb74 authored Oct 9, 2024
2 parents 0f76f09 + 3588efc commit b7b620d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/appgateway-auto-start.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
schedule:
- cron: "30 5 * * 1-5" # Every weekday at 6:30am BST
env:
DEV_ENV: ${{ secrets.DEV_ENV }}
DEV_ENV: "true"
permissions:
id-token: write
jobs:
Expand Down Expand Up @@ -62,5 +62,5 @@ jobs:
run: sleep 300

- name: App Gateway Auto start status check
if: env.DEV_ENV != 'true'
# if: env.DEV_ENV != 'true'
run: ./scripts/appgateway/appgw_status.sh start ${{ secrets.SHUTDOWN_NOTIFICATIONS_WEBHOOK }}
2 changes: 1 addition & 1 deletion scripts/common/common-functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function auto_shutdown_notification() {

# This silences the slack response message in logs.
# Comment this line out if you are having issues with slack delivery and want to see responses in your terminal
local silentResponse="-s -o /dev/null"
# local silentResponse="-s -o /dev/null"

curl $silentResponse -X POST --data-urlencode "payload={\"username\": \"Auto Shutdown Notifications\", \"text\": \"$message\", \"icon_emoji\": \":tim-webster:\"}" \
${notificationSlackWebhook}
Expand Down

0 comments on commit b7b620d

Please sign in to comment.