Skip to content

Commit

Permalink
Update main.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
jpradoar authored Nov 16, 2024
1 parent 5555974 commit f77a9d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -39,7 +39,7 @@ jobs:
uses: jpradoar/[email protected]
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 }}"

0 comments on commit f77a9d8

Please sign in to comment.