generated from githubabcs/gh-abcs-actions
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (37 loc) · 1.2 KB
/
greet-everyone.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: 01-2. Greet Everyone
# This workflow is triggered on pushes to the repository.
on:
push:
workflow_call:
inputs:
name:
description: 'What is your name?'
required: true
type: string
workflow_dispatch:
inputs:
name:
description: 'What is your name?'
required: false
default: 'Octocat'
jobs:
greet-users:
# Job name is Greeting
name: Greeting
# This job runs on Linux
runs-on: ubuntu-latest
steps:
# This step uses GitHub's hello-world-javascript-action:
# https://github.com/actions/hello-world-javascript-action
- name: Hello world
uses: actions/hello-world-javascript-action@v1
with:
who-to-greet: "${{ github.event.inputs.name }}${{ inputs.name }}"
id: hello
# This step prints an output (time) from the previous step's action.
- name: Echo the greeting's time
run: echo 'The time was ${{ steps.hello.outputs.time }}.'
# You can now nest up to 4 levels of reusable workflows
# giving you greater flexibility and better code reuse.
#call_reusable_workflow_job:
# uses: githubabcs/gh-abcs-actions/.github/workflows/simple-workflow.yml@main