Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

A template to demonstrate how to build a JavaScript action.

License

NotificationsYou must be signed in to change notification settings

actions/hello-world-javascript-action

Repository files navigation

GitHub Super-LinterCI

This action printsHello, World! orHello, <who-to-greet>! to the log. Tolearn how this action was built, seeCreating a JavaScript action.

Create Your Own Action

To create your own action, you can use this repository as a template! Justfollow the below instructions:

  1. Click theUse this template button at the top of the repository
  2. SelectCreate a new repository
  3. Select an owner and name for your new repository
  4. ClickCreate repository
  5. Clone your new repository

Caution

Make sure to remove or update theCODEOWNERS file! Fordetails on how to use this file, seeAbout 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 theActions tab!🚀

Inputs

InputDefaultDescription
who-to-greetWorldThe name of the person to greet

Outputs

OutputDescription
timeThe time we greeted you

Dependency License Management

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.

  1. Openlicensed.yml

  2. Uncomment the following lines:

    # pull_request:#   branches:#     - main# push:#   branches:#     - main
  3. 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.

Updating Licenses

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

Stars

Watchers

Forks

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp