Skip to content

Commit

Permalink
feat: adding release-it version to github action template
Browse files Browse the repository at this point in the history
Fixes #24
  • Loading branch information
juancarlosjr97 committed Feb 20, 2024
1 parent 06915b1 commit 42f2774
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ The project provides a [GitHub Action](https://github.com/marketplace/actions/gi
| image_tag | Image tag used to pass specific version of the action | false | `latest` |
| plugins_list | List of Plugins to run with release-it as comma separated | false | "" |
| ssh_private_key | SSH Private Key | false | "" |
| version | Release It version | false | `latest` |

#### Workflow

Expand Down
7 changes: 7 additions & 0 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ inputs:
description: SSH Private Key
required: false

version:
default: "latest"
description: Release It version
required: false

runs:
using: composite
steps:
Expand All @@ -63,6 +68,7 @@ runs:
-e GPG_PRIVATE_KEY="${GPG_PRIVATE_KEY}" \
-e GPG_PRIVATE_KEY_ID="${GPG_PRIVATE_KEY_ID}" \
-e RELEASE_IT_PLUGINS="${RELEASE_IT_PLUGINS}" \
-e RELEASE_IT_VERSION="${RELEASE_IT_VERSION}"
-e SSH_PRIVATE_KEY="${SSH_PRIVATE_KEY}" \
-u root \
-v $PWD:/app \
Expand All @@ -75,5 +81,6 @@ runs:
GPG_PRIVATE_KEY: ${{ inputs.gpg_private_key }}
GPG_PRIVATE_KEY_ID: ${{ inputs.gpg_private_key_id }}
RELEASE_IT_PLUGINS: ${{ inputs.plugins_list }}
RELEASE_IT_VERSION: ${{ inputs.version }}
SSH_PRIVATE_KEY: ${{ inputs.ssh_private_key }}
shell: bash

0 comments on commit 42f2774

Please sign in to comment.