Skip to content

Commit

Permalink
Merge pull request #7 from dokku/fix-bump
Browse files Browse the repository at this point in the history
fix: properly call semver docker image
  • Loading branch information
josegonzalez authored May 16, 2024
2 parents 8b5b540 + 7472819 commit 3ebb5a0
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/bump-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down

0 comments on commit 3ebb5a0

Please sign in to comment.