Skip to content

Commit bc156f1

Browse files
author
JAISWAL SHIVANI
committed
update deploy.yml- add stop runner
1 parent 7948d2e commit bc156f1

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/deploy.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,5 +74,11 @@ jobs:
7474
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
7575
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
7676
aws-region: ${{ secrets.AWS_REGION }}
77-
77+
- name: Stop EC2 runner
78+
uses: machulav/ec2-github-runner@v2
79+
with:
80+
mode: stop
81+
github-token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
82+
label: ${{ needs.start-runner.outputs.label }}
83+
ec2-instance-id: ${{ needs.start-runner.outputs.ec2-instance-id }}
7884

0 commit comments

Comments
 (0)