forked from Satak/webrequest-action
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
11,651 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
on: [push] | ||
|
||
jobs: | ||
hello_world_job: | ||
runs-on: ubuntu-latest | ||
name: A job to say hello | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v1 | ||
- name: Hello world action step | ||
id: hello | ||
uses: satak/hello-action@master | ||
with: | ||
who-to-greet: "Satak" | ||
# Use the output from the `hello` step | ||
- name: Get the output time | ||
run: echo "The time was ${{ steps.hello.outputs.time }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,23 @@ | ||
# hello-action | ||
GitHub hello action | ||
# Hello 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 | ||
|
||
```yaml | ||
uses: satak/hello-action@master | ||
with: | ||
who-to-greet: "<your name>" | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
name: "Hello Action" | ||
description: "Greet someone and record the time" | ||
inputs: | ||
who-to-greet: | ||
description: "Who to greet" | ||
required: true | ||
default: "World" | ||
outputs: | ||
time: | ||
description: "The time we greeted you" | ||
runs: | ||
using: "node12" | ||
main: "index.js" |
Oops, something went wrong.