You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This action prints Hello, World! or Hello, <who-to-greet>! to the log. To
learn how this action was built, see
Creating a JavaScript action.
Create Your Own Action
To create your own action, you can use this repository as a template! Just
follow the below instructions:
Click the Use this template button at the top of the repository
Select Create a new repository
Select an owner and name for your new repository
Click Create repository
Clone your new repository
Caution
Make sure to remove or update the CODEOWNERS file! For
details on how to use this file, see
About code owners.
Usage
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 the
Actions tab!
🚀
Inputs
Input
Default
Description
who-to-greet
World
The name of the person to greet
Outputs
Output
Description
time
The time we greeted you
Dependency License Management
This template includes a GitHub Actions workflow,
licensed.yml, that uses
Licensed to check for dependencies with
missing or non-compliant licenses. This workflow is initially disabled. To
enable the workflow, follow the below steps.
# 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 or
changes pushed directly to main. If the workflow detects any dependencies with
missing or non-compliant licenses, it will fail the workflow and provide details
on the issue(s) found.
Updating Licenses
Whenever you install or update dependencies, you can use the Licensed CLI to
update the licenses database. To install Licensed, see the project's
Readme.
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.