๐ A simple nodejs action template (using typescript)
- Inputs
- Outputs
- Example usage
- Example using a public action
- Example using a private action
- Development
Required The name of the person to greet. Default "World"
.
The time we greeted you.
uses: raulanatol/[email protected]
with:
who-to-greet: 'Mona the Octocat'
.github/workflows/main.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: raulanatol/[email protected]
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 }}"
.github/workflows/main.yml
on: [push]
jobs:
hello_world_job:
runs-on: ubuntu-latest
name: A job to say hello
steps:
# To use this repository's private action,
# you must check out the repository
- name: Checkout
uses: actions/checkout@v2
- name: Hello world action step
uses: ./ # Uses an action in the root directory
id: hello
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 }}"
To close a release you only need to execute the makefile with release_{major|minor|patch}
Example:
make release_minor
To generate the documentation you only need to execute the makefile with docs
.
Using doctoc
make docs