Use grep -Po for tag_name and browser_download_url extraction globally; cache API responses for arch-specific checks#8016
Merged
MichaIng merged 7 commits intodev-StS_UptimeKumaInstallationfrom Mar 14, 2026
Conversation
1 task
…RCH entries Co-authored-by: MichaIng <28480705+MichaIng@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix Uptime Kuma installation to use the latest version
Use Mar 14, 2026
grep -Po for tag_name extraction globally; cache API responses for arch-specific checks
Owner
|
@copilot |
…software and update_urls.bash Co-authored-by: MichaIng <28480705+MichaIng@users.noreply.github.com>
Contributor
Author
Done in commit dc7808b. All
|
Copilot
AI
changed the title
Use
Use Mar 14, 2026
grep -Po for tag_name extraction globally; cache API responses for arch-specific checksgrep -Po for tag_name and browser_download_url extraction globally; cache API responses for arch-specific checks
Since we do not want to match RC versions, use lookahead in pattern to match the double-quotation closing.
MichaIng
approved these changes
Mar 14, 2026
MichaIng
approved these changes
Mar 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The
mawk-based JSON field extraction (/^ *"field": "[^"]*",$/{print $4}) fails silently when GitHub returns single-line JSON, causing version detection to fall back to hardcoded values.grep -Powith PCRE\Kworks on both single- and multi-line responses.dietpi/dietpi-softwaremawktag_namepatterns withgrep -Po '"tag_name": *"\K[^"]+'(FreshRSS, ruTorrent, Box86, Box64, Immich ×2; Uptime Kuma was already fixed)mawk -F\"browser_download_urlpatterns withgrep -Poequivalents (41 patterns across all software entries).github/workflows/update_urls.bashtag_namepattern fix (7 entries):browser_download_urlpattern fix (39 entries):Special cases: the Forgejo
mawk -v RS=,pattern (for single-line JSON) is replaced withgrep -Po "..." | head -1to replicate the original{exit}first-match behaviour.Response caching for all 32
aARCHentries — avoids N redundant curl calls (one per architecture) per software ID:aURL[$software_id]='https://...'for every entry withaARCHdefinedcurl 'URL' |withecho "$response" |inaCHECKaCHECKis retained with a comment clarifying it only applies to entries withoutaURL💬 Send tasks to Copilot coding agent from Slack and Teams to turn conversations into code. Copilot posts an update in your thread when it's finished.