-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (40 loc) · 1.1 KB
/
self-hosted-runner.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: on self hosted runner
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:
on-self-hosted-runner:
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}}..."
- name: vm details
run: |
cat /etc/os-release
echo "=================================="
cat /etc/hostname
echo "=================================="
uname -a
echo "=================================="