项目作者: raulanatol

项目描述 :
📓 A simple docker container action template (using typescript)
高级语言: Shell
项目地址: git://github.com/raulanatol/template-action-nodejs-ts.git
创建时间: 2020-09-14T13:17:37Z
项目社区:https://github.com/raulanatol/template-action-nodejs-ts

开源协议:MIT License

下载



template-action-nodejs-ts


📓 A simple nodejs action template (using typescript)


Table of Contents

Inputs

who-to-greet

Required The name of the person to greet. Default "World".

Outputs

time

The time we greeted you.

Example usage

  1. uses: raulanatol/template-action-nodejs-ts@v1.0.0
  2. with:
  3. who-to-greet: 'Mona the Octocat'

Example using a public action

.github/workflows/main.yml

  1. on: [push]
  2. jobs:
  3. hello_world_job:
  4. runs-on: ubuntu-latest
  5. name: A job to say hello
  6. steps:
  7. - name: Hello world action step
  8. id: hello
  9. uses: raulanatol/template-action-nodejs-ts@v1.0.0
  10. with:
  11. who-to-greet: 'Mona the Octocat'
  12. # Use the output from the `hello` step
  13. - name: Get the output time
  14. run: echo "The time was ${{ steps.hello.outputs.time }}"

Example using a private action

.github/workflows/main.yml

  1. on: [push]
  2. jobs:
  3. hello_world_job:
  4. runs-on: ubuntu-latest
  5. name: A job to say hello
  6. steps:
  7. # To use this repository's private action,
  8. # you must check out the repository
  9. - name: Checkout
  10. uses: actions/checkout@v2
  11. - name: Hello world action step
  12. uses: ./ # Uses an action in the root directory
  13. id: hello
  14. with:
  15. who-to-greet: 'Mona the Octocat'
  16. # Use the output from the `hello` step
  17. - name: Get the output time
  18. run: echo "The time was ${{ steps.hello.outputs.time }}"

Development

Close release

To close a release you only need to execute the makefile with release_{major|minor|patch}

Example:

```shell script
make release_minor

  1. ### Documentation
  2. To generate the documentation you only need to execute the makefile with `docs`.
  3. > Using [doctoc](https://github.com/thlorenz/doctoc)
  4. ```shell script
  5. make docs