Skip to content

icew1nd/create-github-action-boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Create-github-action-boilerplate

Creates a boilerplate github action ready to be published - based off Githubs official guide

Quick overview

npx create-github-action-boilerplate my-action

OR

npm i create-github-action-boilerplate -g
create-github-action-boilerplate my-action

Then add it to GitHub by

git init
git add .
git commit -m init
git push --set-upstream origin master

From there go to your repository on github and click "Publish this action to marketplace" following this guide.

Use in workflow

Public market place

    - name: Hello world
      uses: *your-github-handle*/my-action@v1
      with:
        who-to-greet: 'Mona the Octocat'

Private action

For private actions you will need to place your action within the repository that it's going to be used in under:

/.github/actions/

|-- hello-world (repository)
|   |__ .github
|       └── workflows
|           └── my-first-workflow.yml
|       └── actions
|           |__ hello-world-action
|               └── action.yml

and then from your work flow

    - name: Hello world
      uses: ./.github/actions/hello-world-action
      with:
        who-to-greet: 'Mona the Octocat'

You can read more from the official documentation here.

About

Creates a boilerplate github action

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published