mirror of
https://github.com/keycloak/keycloak.git
synced 2025-12-16 20:15:46 -06:00
Fix schedule-nightly workflow (#43413)
Signed-off-by: Stian Thorgersen <stianst@gmail.com> Signed-off-by: Stian Thorgersen <stian@redhat.com>
This commit is contained in:
2
.github/workflows/schedule-nightly.yml
vendored
2
.github/workflows/schedule-nightly.yml
vendored
@@ -19,7 +19,7 @@ jobs:
|
||||
steps:
|
||||
- id: latest-release
|
||||
run: |
|
||||
branch="release/$(gh api repos/keycloak/keycloak/branches | jq -r '.[].name' | sort -r | awk -F'/' '/[0-9.]+$/ {print $NF; exit}')"
|
||||
branch="$(gh api --paginate repos/keycloak/keycloak/branches -q '.[].name' | grep '^release/' | sort -r -V | head -n 1)"
|
||||
echo "branch=$branch"
|
||||
echo "branch=$branch" >> "$GITHUB_OUTPUT"
|
||||
env:
|
||||
|
||||
Reference in New Issue
Block a user