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
- Host: GitHub
- URL: https://github.com/or13/github-action-js-hello-world
- Owner: OR13
- Created: 2022-03-01T17:45:48.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-03-02T19:01:35.000Z (over 4 years ago)
- Last Synced: 2025-02-13T19:49:20.436Z (over 1 year ago)
- Language: JavaScript
- Size: 877 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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 }}"
```