Skip to content

Commit

Permalink
fixed rc version finder
Browse files Browse the repository at this point in the history
  • Loading branch information
zurdi15 committed Dec 22, 2023
1 parent 9745664 commit 851b0ef
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,7 @@ jobs:
- name: Get last image tag
if: ${{ inputs.releaseCandidate }}
run: |
CURRENT_RC_VERSION=$(wget -q -O - "https://hub.docker.com/v2/repositories/zurdi15/romm/tags?page_size=2" | grep -o '"name": *"[^"]*' | grep -o '[^"]*$' | grep "dev-${version}-rc" | cut -d "-" -f 3 | cut -d "." -f 2)
NEXT_RC_VERSION=$(($CURRENT_RC_VERSION + 1))
CURRENT_RC_VERSION=$(wget -q -O - "https://hub.docker.com/v2/repositories/zurdi15/romm/tags?page_size=2" | grep -o '"name": *"[^"]*' | grep -o '[^"]*$' | grep "dev-${{ inputs.version }}-rc" | cut -d "-" -f 3 | cut -d "." -f 2)
echo "NEXT_RC_VERSION=$(($CURRENT_RC_VERSION + 1))" >> $GITHUB_ENV
- name: Test get last image tag variable
Expand Down

0 comments on commit 851b0ef

Please sign in to comment.