fix: version detection for ArgoCD and ente
All checks were successful
Image builds / build-ente-images (cast) (push) Successful in 17s
Image builds / build-ente-images (photos) (push) Successful in 18s
Image builds / build_images (renovate) (push) Successful in 13s
Renovate / renovate (push) Successful in 23s

This commit is contained in:
Peter 2024-05-21 21:37:18 +02:00
parent 3db50d5d82
commit 83925c636a
Signed by: prskr
GPG key ID: F56BED6903BC5E37
2 changed files with 2 additions and 2 deletions

View file

@ -28,7 +28,7 @@ jobs:
- name: Check latest ArgoCD tag - name: Check latest ArgoCD tag
run: | run: |
echo "ARGOCD_VERSION=$(gh release list -R argoproj/argo-cd --exclude-pre-releases --exclude-drafts --json 'tagName' --jq '.[].tagName' --limit 1)" >> "$GITHUB_ENV" echo "ARGOCD_VERSION=$(gh release list -R argoproj/argo-cd --exclude-pre-releases --exclude-drafts --json 'tagName' --jq '.[].tagName' --limit 10 | sort -t. -k 1,1nr -k 2,2nr -k 3,3nr -k 4,4nr | head -n 1)" >> "$GITHUB_ENV"
env: env:
GH_TOKEN: ${{ secrets.RENOVATE_GITHUB_TOKEN }} GH_TOKEN: ${{ secrets.RENOVATE_GITHUB_TOKEN }}

View file

@ -33,7 +33,7 @@ jobs:
- name: Fetch latest ente photos tag - name: Fetch latest ente photos tag
run: | run: |
echo "ENTE_PHOTOS_VERSION=$(gh release list -R ente-io/ente --exclude-pre-releases --exclude-drafts --jq '.[] | select(.tagName | startswith("photos")) | .tagName' --json 'tagName' --limit 1)" >> "$GITHUB_ENV" echo "ENTE_PHOTOS_VERSION=$(gh release list -R ente-io/ente --exclude-pre-releases --exclude-drafts --jq '.[] | select(.tagName | startswith("photos")) | .tagName' --json 'tagName' --limit 10 | head -n 1)" >> "$GITHUB_ENV"
env: env:
GH_TOKEN: ${{ secrets.RENOVATE_GITHUB_TOKEN }} GH_TOKEN: ${{ secrets.RENOVATE_GITHUB_TOKEN }}