-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (46 loc) · 1.57 KB
/
basic-workflow.yml
File metadata and controls
50 lines (46 loc) · 1.57 KB
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
42
43
44
45
46
47
48
49
50
# Name display of workflow
name: Basic Workflow
# 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
on:
workflow_dispatch:
# Inputs the workflow accepts
inputs:
name:
# Friendly description to be shown in the UI instead of 'name'
description: "Person to greet"
# Default value
default: "World"
# Input has to be provided for the workflow to run
required: true
# Input type
type: string
city:
description: "Favourite city"
required: true
default: "Leeds"
type: choice
options:
- New York
- Tokyo
- Leeds
fav-colour-blue:
description: "Is your favourite colour blue"
required: true
type: boolean
# Workflows made up of one or more jobs.
jobs:
# This workflow has one job called greet
greet:
# Displays name for job
name: "Greetings, Program!"
# Type of runner the job will run on
runs-on:
- ubuntu-latest
# Steps represent a sequence of tasks that will be executed in job
steps:
# Runs commands using the runners shell and gets context from the github object
- name: Send greeting
run: |
echo "Hello ${{ github.event.inputs.name }}"
echo "Your favourite city is ${{ github.event.inputs.city }}"
echo "Is your favourite colour blue: ${{ github.event.inputs.fav-colour-blue }}"