Skip to content

Commit

Permalink
Fix: sort (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalholthaus authored Mar 7, 2024
1 parent 73e84f1 commit c67119d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:
- name: Helm upgrade matrix
id: upgrade
run: |
echo "matrix=$(echo '${{ inputs.charts }}' | jq -r '{include:[.[] | {chart: ., digest: "${{ inputs.postgres-major-version }}@${{ steps.build.outputs.digest }}" }]} | @json')" >> $GITHUB_OUTPUT
echo "matrix=$(echo '${{ inputs.charts }}' | jq -r '{include:[.[] | {chart: ., digest: "${{ steps.build.outputs.digest }}" }]} | @json')" >> $GITHUB_OUTPUT
outputs:
matrix: ${{ steps.upgrade.outputs.matrix }}
Expand Down Expand Up @@ -92,7 +92,7 @@ jobs:
shell: bash
run: |
# Get the latest tag filtered by postgres major version.
t="$(echo -e '${{ steps.tags.outputs.output }}' | grep -E '${{ inputs.postgres-major-version }}.[0-9]+.[0-9]+' | sort -n | sed q)"
t="$(echo -e '${{ steps.tags.outputs.output }}' | grep -E '${{ inputs.postgres-major-version }}.[0-9]+.[0-9]+' | sort -nr | sed q)"
IFS='.' read -r -a v <<< "$t"
# Increment patch level
v[2]=$((v[2] + 1))
Expand Down

0 comments on commit c67119d

Please sign in to comment.