diff --git a/.github/workflows/bump-release.yml b/.github/workflows/bump-release.yml index eeb7974..2be1e21 100644 --- a/.github/workflows/bump-release.yml +++ b/.github/workflows/bump-release.yml @@ -5,8 +5,8 @@ name: "bump-version" on: workflow_dispatch: inputs: - release_type: - description: "Release type" + bump_type: + description: "Bump type" default: "patch" required: true type: choice @@ -58,16 +58,16 @@ jobs: - name: Compute Next Tag id: next-tag run: | - git_next_tag="$(docker run --rm -e GITHUB_VERSION_INPUT -e GITHUB_VERSION_BUMP ghcr.io/${{ github.repository }}:${{ github.sha }})" + git_next_tag="$(docker run --rm -e SEMVER_GENERATOR_INPUT -e SEMVER_GENERATOR_BUMP ghcr.io/${{ github.repository }}:${{ github.sha }})" if [[ -z "$git_next_tag" ]]; then echo "Failed to compute next tag" - docker run --rm -e GITHUB_VERSION_INPUT -e GITHUB_VERSION_BUMP ghcr.io/${{ github.repository }}:${{ github.sha }} + docker run --rm -e SEMVER_GENERATOR_INPUT -e SEMVER_GENERATOR_BUMP ghcr.io/${{ github.repository }}:${{ github.sha }} exit 1 fi echo "GIT_NEXT_TAG=$git_next_tag" >>"$GITHUB_OUTPUT" env: - GITHUB_VERSION_INPUT: ${{ steps.latest-tag.outputs.GIT_LATEST_TAG }} - GITHUB_VERSION_BUMP: ${{ github.event.inputs.release_type }} + SEMVER_GENERATOR_INPUT: ${{ steps.latest-tag.outputs.GIT_LATEST_TAG }} + SEMVER_GENERATOR_BUMP: ${{ github.event.inputs.bump_type }} - name: Create and Push Tag run: | diff --git a/README.md b/README.md index 740f87d..e2a6160 100644 --- a/README.md +++ b/README.md @@ -17,5 +17,5 @@ docker build --progress plain -t semver . docker run --rm semver --input 0.1.2 --bump patch # run it with environment variables -docker run --rm -e GITHUB_VERSION_INPUT=0.1.2 -e GITHUB_VERSION_BUMP=patch semver +docker run --rm -e SEMVER_GENERATOR_INPUT=0.1.2 -e SEMVER_GENERATOR_BUMP=patch semver ``` diff --git a/action.yml b/action.yml index dd12812..5ad3c89 100644 --- a/action.yml +++ b/action.yml @@ -17,5 +17,5 @@ runs: image: "Dockerfile" entrypoint: "/usr/local/bin/entrypoint" env: - GITHUB_VERSION_BUMP: ${{ inputs.bump }} - GITHUB_VERSION_INPUT: ${{ inputs.input }} + SEMVER_GENERATOR_BUMP: ${{ inputs.bump }} + SEMVER_GENERATOR_INPUT: ${{ inputs.input }} diff --git a/entrypoint b/entrypoint index 84a72c8..757a02f 100755 --- a/entrypoint +++ b/entrypoint @@ -3,8 +3,8 @@ set -e main() { declare ARGS=("$@") - if [[ -n "$GITHUB_VERSION_INPUT" ]] && [[ -n "$GITHUB_VERSION_BUMP" ]]; then - ARGS=("--input" "$GITHUB_VERSION_INPUT" "--bump" "$GITHUB_VERSION_BUMP") + if [[ -n "$SEMVER_GENERATOR_INPUT" ]] && [[ -n "$SEMVER_GENERATOR_BUMP" ]]; then + ARGS=("--input" "$SEMVER_GENERATOR_INPUT" "--bump" "$SEMVER_GENERATOR_BUMP") fi if [ ${#ARGS[@]} -eq 0 ]; then