Skip to content

Commit

Permalink
Refactor. Run Dev Environments only from Monday through Friday
Browse files Browse the repository at this point in the history
  • Loading branch information
mohan-13 committed Oct 18, 2024
1 parent 537bb7d commit 68853e7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/start_scheduler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ name: Start EKS Node Group & RDS in AWS
on:
workflow_dispatch:
schedule:
# Runs "At 06:00 AM on every day. Below time is mentioned in UTC time zone" (see https://crontab.guru)
- cron: '30 00 * * *'
# Runs "At 06:00 AM IST on Monday through Friday. Below time is mentioned in UTC time zone" (see https://crontab.guru)
- cron: '30 00 * * 1-5'

jobs:
start-rds:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/stop_scheduler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ name: Stop EKS Node Group & RDS in AWS
on:
workflow_dispatch:
schedule:
# Runs "At 09:00 PM on every day. Below time is mentioned in UTC time zone" (see https://crontab.guru)
- cron: '30 15 * * *'
# Runs "At 09:00 PM IST on Moday-Friday. Below time is mentioned in UTC time zone" (see https://crontab.guru)
- cron: '30 15 * * 1-5'

jobs:
stop-nodegroup:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/validate-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on:
branches: [ main ]
paths-ignore:
- 'README.md'
- '.github/workflows/start_scheduler.yml'
- '.github/workflows/stop_scheduler.yml'
env:
TERRAFORM_VERSION: 1.3.0
jobs:
Expand Down

0 comments on commit 68853e7

Please sign in to comment.