Skip to content

Commit

Permalink
Create self-hosted-runner.yml
Browse files Browse the repository at this point in the history
Create self-hosted-runner.yml
  • Loading branch information
githubofkrishnadhas authored Dec 8, 2023
1 parent 70b0192 commit 0f2e9be
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/self-hosted-runner.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
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
subscription_name:
required: true
default: "TECH-ARCHITECTS-NONPROD"
type: string
jobs:
start-or-stop-azure-virtual-machine:
runs-on: self-hosted
name: ${{ github.actor }} ${{ github.event.inputs.action }} ${{github.event.inputs.vm_name}} VM
steps:
- name: echo inputs
run: |
echo " action ${{github.event.inputs.action}} vmname ${{github.event.inputs.vm_name}} "
echo "Hi ${{github.actor}}..."

0 comments on commit 0f2e9be

Please sign in to comment.