diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index bf3ad8a..2f8e133 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -30,7 +30,7 @@ jobs: uses: docker/setup-buildx-action@v2 - name: Show last version of docker-hub image - id: last_version_remote_file + id: get_last_version run: | LastVersion=$(curl -s "https://hub.docker.com/v2/repositories/${{ env.REPO_USER }}/${{ env.REPO_APP }}/tags/?page_size=2" | jq -r '.results[].name'|sort -M|grep -v latest|tail -1) echo "LAST_VERSION=$LastVersion " >> "$GITHUB_OUTPUT" @@ -39,7 +39,7 @@ jobs: uses: jpradoar/ga-semanticversion@v1.0.0 with: COMMIT_MSG: ${{ github.event.head_commit.message }} - VERSION: ${{ steps.last_version_local_file.outputs.LAST_VERSION }} + VERSION: ${{ steps.get_last_version.outputs.LAST_VERSION }} - name: Show new version run: echo "New version ${{ steps.nversion.outputs.NEW_VERSION }}"