A JavaScript GitHub Action template that provides basic greeting functionality.
- Custom greeting with configurable name
- Timestamp output
- Node.js 20 runtime
- Bundled dependencies
| Name | Description | Required | Default |
|---|---|---|---|
user-name |
Name to be greeted | Yes | 'Renan' |
| Name | Description |
|---|---|
greeting |
The generated greeting message |
time |
The timestamp when the action ran |
steps:
- name: Greeting Action
uses: renan-alm/js-action-demo@v0.3.0
id: hello
with:
user-name: 'Your Name' # Required, defaults to 'Renan'
- name: Get Output
run: |
echo "Greeting: ${{ steps.hello.outputs.greeting }}"
echo "Time: ${{ steps.hello.outputs.time }}"- Clone the repository
- Install dependencies:
npm install - Make changes to
src/index.js - Build:
npm run build - Commit including the
distfolder
MIT License - see LICENSE file for details