File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 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 }}"
You can’t perform that action at this time.
0 commit comments