Skip to content

Commit

Permalink
updated workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
githubofkrishnadhas committed Dec 7, 2023
1 parent a089deb commit 70b0192
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/start_azure_vm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ jobs:
az vm start --name ${{ github.event.inputs.vm_name }} --resource-group ${{ github.event.inputs.resource_group }} --subscription ${{ github.event.inputs.subscription_name }}
echo "Vm ${{ github.event.inputs.vm_name }} has been started"
elif [[ "${{ github.event.inputs.action }}" == "stop" ]]; then
az vm stop --name ${{ github.event.inputs.vm_name }} --resource-group ${{ github.event.inputs.resource_group }} --subscription ${{ github.event.inputs.subscription_name }}
echo "Vm ${{ github.event.inputs.vm_name }} has been stopped"
az vm deallocate --name ${{ github.event.inputs.vm_name }} --resource-group ${{ github.event.inputs.resource_group }} --subscription ${{ github.event.inputs.subscription_name }}
echo "Vm ${{ github.event.inputs.vm_name }} has been stopped/deallocated"
fi
Expand Down

0 comments on commit 70b0192

Please sign in to comment.