- Notifications
You must be signed in to change notification settings - Fork258
A template to demonstrate how to build a JavaScript action.
License
actions/hello-world-javascript-action
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This action printsHello, World!
orHello, <who-to-greet>!
to the log. Tolearn how this action was built, seeCreating a JavaScript action.
To create your own action, you can use this repository as a template! Justfollow the below instructions:
- Click theUse this template button at the top of the repository
- SelectCreate a new repository
- Select an owner and name for your new repository
- ClickCreate repository
- Clone your new repository
Caution
Make sure to remove or update theCODEOWNERS
file! Fordetails on how to use this file, seeAbout code owners.
Here's an example of how to use this action in a workflow file:
name:Example Workflowon:workflow_dispatch:inputs:who-to-greet:description:Who to greet in the logrequired:truedefault:'World'type:stringjobs:say-hello:name:Say Helloruns-on:ubuntu-lateststeps:# Change @main to a specific commit SHA or version tag, e.g.:# actions/hello-world-javascript-action@e76147da8e5c81eaf017dede5645551d4b94427b# actions/hello-world-javascript-action@v1.2.3 -name:Print to Logid:print-to-loguses:actions/hello-world-javascript-action@mainwith:who-to-greet:${{ inputs.who-to-greet }}
For example workflow runs, check out theActions tab!🚀
Input | Default | Description |
---|---|---|
who-to-greet | World | The name of the person to greet |
Output | Description |
---|---|
time | The time we greeted you |
This template includes a GitHub Actions workflow,licensed.yml
, that usesLicensed to check for dependencies withmissing or non-compliant licenses. This workflow is initially disabled. Toenable the workflow, follow the below steps.
Open
licensed.yml
Uncomment the following lines:
# pull_request:# branches:# - main# push:# branches:# - main
Save and commit the changes
Once complete, this workflow will run any time a pull request is created orchanges pushed directly tomain
. If the workflow detects any dependencies withmissing or non-compliant licenses, it will fail the workflow and provide detailson the issue(s) found.
Whenever you install or update dependencies, you can use the Licensed CLI toupdate the licenses database. To install Licensed, see the project'sReadme.
To update the cached licenses, run the following command:
licensed cache
To check the status of cached licenses, run the following command:
licensed status
About
A template to demonstrate how to build a JavaScript action.
Resources
License
Code of conduct
Security policy
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.