From 747281912e4a23138600d03570ffeb598cc24b73 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Thu, 16 May 2024 18:19:42 -0400 Subject: [PATCH] fix: properly call semver docker image --- .github/workflows/bump-version.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/bump-version.yml b/.github/workflows/bump-version.yml index 2be1e21..0a4e93d 100644 --- a/.github/workflows/bump-version.yml +++ b/.github/workflows/bump-version.yml @@ -58,16 +58,13 @@ jobs: - name: Compute Next Tag id: next-tag run: | - git_next_tag="$(docker run --rm -e SEMVER_GENERATOR_INPUT -e SEMVER_GENERATOR_BUMP ghcr.io/${{ github.repository }}:${{ github.sha }})" + git_next_tag="$(docker run --rm ghcr.io/${{ github.repository }}:${{ github.sha }} --input "${{ steps.latest-tag.outputs.GIT_LATEST_TAG }}" --bump "${{ github.event.inputs.bump_type }}")" if [[ -z "$git_next_tag" ]]; then echo "Failed to compute next tag" - docker run --rm -e SEMVER_GENERATOR_INPUT -e SEMVER_GENERATOR_BUMP ghcr.io/${{ github.repository }}:${{ github.sha }} + docker run --rm ghcr.io/${{ github.repository }}:${{ github.sha }} --input "${{ steps.latest-tag.outputs.GIT_LATEST_TAG }}" --bump "${{ github.event.inputs.bump_type }}" exit 1 fi echo "GIT_NEXT_TAG=$git_next_tag" >>"$GITHUB_OUTPUT" - env: - SEMVER_GENERATOR_INPUT: ${{ steps.latest-tag.outputs.GIT_LATEST_TAG }} - SEMVER_GENERATOR_BUMP: ${{ github.event.inputs.bump_type }} - name: Create and Push Tag run: |