Support SourceMod builds from GitHub releases (1.13.7305+)#31
Draft
Support SourceMod builds from GitHub releases (1.13.7305+)#31
Conversation
Agent-Logs-Url: https://github.com/rumblefrog/setup-sp/sessions/99bf5575-87ba-4297-8d59-a0d422f1059c Co-authored-by: rumblefrog <6960234+rumblefrog@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix SourceMod builds unavailability for versions newer than 1.13.7304
Support SourceMod builds from GitHub releases (1.13.7305+)
Apr 3, 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.
Since alliedmodders/sourcemod#2422, new SourceMod builds are published as GitHub releases instead of smdrop, making builds >1.13.7304 inaccessible to this action.
Changes
getVersions()now fetches from both smdrop and the GitHub releases API concurrently viaPromise.allSettled(). Either source can fail independently — a warning is emitted and resolution continues with the remaining source. Only throws if both fail.GithubVersionclass: ExtendsVersionwith a directbrowser_download_urloverride fortoEndpoint(), bypassing the smdrop URL construction.getGithubVersions()pages throughapi.github.com/repos/alliedmodders/sourcemod/releases, parsing tags in1.13.0.7316format and matching platform-specific assets (sourcemod-1.13.0-git7316-linux.tar.gz). GitHub releases take precedence over smdrop for any overlapping build numbers.github-tokeninput: Optional action input (falls back toGITHUB_TOKENenv var) for authenticated GitHub API requests to avoid rate limiting.Usage