-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (45 loc) · 1.49 KB
/
second-basic.workflow.yaml
File metadata and controls
45 lines (45 loc) · 1.49 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
# This is basis workflwo for nodejs, it will run on push and pull request on master branc
name: Basic workflow
on:
workflow_dispatch:
inputs:
name:
description: "Name of the person to greet"
required: true
default: "Mona the Octocat"
type: string
city:
description: "City of the person to greet"
required: true
default: "San Francisco"
type: choice
options:
- "San Francisco"
- "Amsterdam"
- "London"
- "New York"
fav-color-blue:
description: "Is Blue your favorite color?"
required: true
type: boolean
jobs:
#This workflow contains a single job that runs on the latest version of ubuntu
greet1:
#Type of runner that the job will run on
runs-on: ubuntu-latest
#steps represent a sequence of tasks that will be executed as part of the greet job
steps:
#it runs the command using the runners shell and get the context from the github object
- name: Sending first Greeting
run: |
echo "Hello ${{ github.event.inputs.name }}"
echo "from ${{ github.event.inputs.city }}"
echo "from ${{ github.event.inputs.fav-color-blue }}"
greet2:
runs-on: ubuntu-latest
steps:
- name: Sending Second Greeting
run: |
echo "Hello ${{ github.event.inputs.name }}"
echo "from ${{ github.event.inputs.city }}"
echo "from ${{ github.event.inputs.fav-color-blue }}"