Skip to content

Commit 7b4d27a

Browse files
authored
Merge pull request #952 from Romanitho/hotfix/Nightlies
Fix nightlies
2 parents d9186c0 + 2a33ec7 commit 7b4d27a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/GitFlow_Nightly-builds.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,11 @@ jobs:
3838
id: check_prs
3939
shell: powershell
4040
run: |
41-
# Find the latest tag of any type
42-
$LATEST_TAG = git for-each-ref --sort=-creatordate --format '%(refname:short)' refs/tags | Select-Object -First 1
43-
Write-Host "Latest tag: $LATEST_TAG"
41+
# Get the latest release of any type
42+
$releases = Invoke-RestMethod -Uri "https://api.github.com/repos/Romanitho/Winget-AutoUpdate/releases"
43+
$latest = $releases | Sort-Object {[datetime]$_.published_at} -Descending | Select-Object -First 1
44+
$LATEST_TAG = $latest.tag_name
45+
Write-Host "Latest release: $LATEST_TAG"
4446
4547
# Get merged PRs since last tag using Git directly
4648
$MERGED_PRS = git log --merges --grep="Merge pull request" --oneline "$LATEST_TAG..${{ env.BRANCH }}"

0 commit comments

Comments
 (0)