An open API service indexing awesome lists of open source software.

https://github.com/or13/github-action-js-hello-world


https://github.com/or13/github-action-js-hello-world

Last synced: about 1 year ago
JSON representation

Awesome Lists containing this project

README

          

Hello world

Based on https://docs.github.com/en/actions/creating-actions/creating-a-javascript-action

# Hello world javascript action

This action prints "Hello World" or "Hello" + the name of a person to greet to the log.

## Inputs

## `who-to-greet`

**Required** The name of the person to greet. Default `"World"`.

## Outputs

## `time`

The time we greeted you.

## Example usage

```yml
on: [push]

jobs:
hello_world_job:
runs-on: ubuntu-latest
name: A job to say hello
steps:
- name: Hello world action step
id: hello
uses: or13/github-action-js-hello-world@v1.1
with:
who-to-greet: "Mona the Octocat"
# Use the output from the `hello` step
- name: Get the output time
run: echo "The time was ${{ steps.hello.outputs.time }}"
```