Skip to content

Commit a864e47

Browse files
committed
Adjust schedule of gha cron
1 parent c43492d commit a864e47

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/deploy-server-reduce.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ name: Resize (Reduce) Deployment Server
55
# The other workflow file increases the instance size during
66
# releases.
77
#
8-
# This one reduces it again, each Sunday.
8+
# This one reduces it again, each Monday.
99
#
1010

1111
on:
1212
workflow_dispatch:
1313
schedule:
14-
- cron: "0 1 * * 0"
14+
- cron: "0 12 * * 1"
1515

1616
jobs:
1717
scale-deploy-server:
@@ -33,4 +33,4 @@ jobs:
3333
3434
- name: Resize Instance
3535
run: |
36-
aws ssm start-automation-execution --document-name "AWS-ResizeInstance" --document-version "\$DEFAULT" --parameters '{"InstanceId":["${{ secrets.DEPLOY_INSTANCE_ID }}"],"InstanceType":["t2.micro"],"SleepWait":["PT5S"]}' --region ${{ secrets.DEPLOY_REGION }}
36+
aws ssm start-automation-execution --document-name "AWS-ResizeInstance" --document-version "\$DEFAULT" --parameters '{"InstanceId":["${{ secrets.DEPLOY_INSTANCE_ID }}"],"InstanceType":["t3.micro"],"SleepWait":["PT5S"]}' --region ${{ secrets.DEPLOY_REGION }}

.github/workflows/deploy-server-resize.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
- name: Resize Instance
4949
if: ${{ ( steps.number-of-wednesday-on-a-wednesday.outputs.VALUE == 2 && github.event_name == 'schedule' ) || ( github.event_name == 'workflow_dispatch' ) }}
5050
run: |
51-
aws ssm start-automation-execution --document-name "AWS-ResizeInstance" --document-version "\$DEFAULT" --parameters '{"InstanceId":["${{ secrets.DEPLOY_INSTANCE_ID }}"],"InstanceType":["c8a.xlarge"],"SleepWait":["PT5S"]}' --region ${{ secrets.DEPLOY_REGION }}
51+
aws ssm start-automation-execution --document-name "AWS-ResizeInstance" --document-version "\$DEFAULT" --parameters '{"InstanceId":["${{ secrets.DEPLOY_INSTANCE_ID }}"],"InstanceType":["t3.xlarge"],"SleepWait":["PT5S"]}' --region ${{ secrets.DEPLOY_REGION }}
5252
5353
5454
# Initial Setup Instructions

0 commit comments

Comments
 (0)