Skip to content

DEVOPS-13

DEVOPS-13 #4

name: start or stop azure virtual machine
on:
workflow_dispatch:
inputs:
action:
default: "stop"
required: true
type: choice
options:
- start
- stop
vm_name:
required: true
default: "devwithkrishna-vm"
type: string
resource_group:
required: true
default: "DEV-WITH-KRISHNA-VM-RG"
type: string
resource_provider_string:
required: true
default: "providers/Microsoft.Compute/virtualMachines"
type: string
jobs:
run-name: ${{ github.actor }} - ${{ github.events.inputs.action }} ${{github.events.inputs.vm_name}} VM

Check failure on line 25 in .github/workflows/start_azure_vm.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/start_azure_vm.yml

Invalid workflow file

You have an error in your yaml syntax on line 25
start-or-stop-azure-virtual-machine:
runs-on: ubuntu-latest
steps:
- name: echo inputs
run: |
echo " action ${{github.event.inputs.action}} vmname ${{github.event.inputs.vm_name}} "