1.0.6 • Published 4 years ago

create-github-action-boilerplate v1.0.6

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

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.

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago