Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Just the very first fix for hello world #94

Closed
wants to merge 15 commits into from
4 changes: 3 additions & 1 deletion .github/workflows/custom-action.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
name: Hello World

on: [push]

jobs:
Expand All @@ -12,4 +14,4 @@ jobs:
name: 'Brown'
# Use the output from the `hello` step
- name: Get the Output
run: echo "The time was ${{ steps.hello.outputs.greeting }}"
run: echo "The time was ${{ steps.hello.outputs.greeting }}"
32 changes: 32 additions & 0 deletions .github/workflows/hello-someone.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# This is a basic workflow that is manually triggered

name: Manual workflow

# Controls when the action will run. Workflow runs when manually triggered using the UI
# or API.
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 if no value is explicitly provided
default: 'World'
# Input has to be provided for the workflow to run
required: true
# The data type of the input
type: string

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "greet"
greet:
# The 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 job
steps:
# Runs a single command using the runners shell
- name: Send greeting
run: echo "Hello ${{ inputs.name }}"
19 changes: 19 additions & 0 deletions .github/workflows/hello-world.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Hello World Workflow

on:
schedule:
- cron: '*/1 * * * *'

jobs:
hello-world:
runs-on: ubuntu-latest
steps:
- id: preparation
name: Preparation
run: echo "Today is {date}. Praparing for the greeting."
- id: greeting
name: Greeting
run: echo "Hello {user}!"
- id: completion
name: Completion
run: echo "Have a nice day!"
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# Github-Examples
A repo containing GitHub for programmatic examples
A repo containing GitHub for programmatic examples.