You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# When the action will run, workflow_dispatch gives a manual button to trigger it. For the button to show you have to have a version of this workflow file on default branch
5
+
on:
6
+
workflow_dispatch:
7
+
# Inputs the workflow accepts
8
+
inputs:
9
+
name:
10
+
# Friendly description to be shown in the UI instead of 'name'
11
+
description: "Person to greet"
12
+
# Default value
13
+
default: "World"
14
+
# Input has to be provided for the workflow to run
15
+
required: true
16
+
# Input type
17
+
type: string
18
+
city:
19
+
description: "Favourite city"
20
+
required: true
21
+
default: "Leeds"
22
+
type: choice
23
+
options:
24
+
- New York
25
+
- Tokyo
26
+
- Leeds
27
+
fav-colour-blue:
28
+
description: "Is your favourite colour blue"
29
+
required: true
30
+
type: boolean
31
+
32
+
# Workflows made up of one or more jobs.
33
+
jobs:
34
+
# This workflow has one job called greet
35
+
greet:
36
+
# Displays name for job
37
+
name: "Greetings, Program!"
38
+
39
+
# Type of runner the job will run on
40
+
runs-on:
41
+
- ubuntu-latest
42
+
43
+
# Steps represent a sequence of tasks that will be executed in job
44
+
steps:
45
+
# Runs commands using the runners shell and gets context from the github object
46
+
- name: Send greeting
47
+
run: |
48
+
echo "Hello ${{ github.event.inputs.name }}"
49
+
echo "Your favourite city is ${{ github.event.inputs.city }}"
50
+
echo "Is your favourite colour blue: ${{ github.event.inputs.name }}"
0 commit comments