forked from ExamProCo/Github-Examples
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (39 loc) · 1.11 KB
/
hello-world-manual.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
42
43
44
name: Hello World Manually Workflow
on:
workflow_dispatch:
inputs:
greeting:
decription: A greeting line.
required: true
type: string
name:
description: Whom to greet.
required: true
type: string
completion:
description: A line after the greeting.
jobs:
hello-world:
runs-on: ubuntu-latest
steps:
- id: preparation
name: Preparation
run: echo "Preparing for the greeting."
- id: greeting
name: Greeting
run: echo "${{inputs.greeting}} ${{inputs.name}}!"
- id: completion
name: Completion
run: echo "${{inputs.completion}}"
print-github-variables:
runs-on: ubuntu-latest
steps:
- id: print-all-variables
name: Prints All environment variables
run: printenv
- id: print-github-variables
name: Prints GitHub variables
run: printenv | grep github
- id: print-github-user
name: Prints the current GitHub user
run: echo "The current user is $GITHUB_ACTOR"