Conversation
… fallback Moves the inline download logic from action.yml into scripts/download-sr.sh. The script tries gh CLI first; if unavailable (e.g. GitHub Enterprise Server), it falls back to curl using GITHUB_SERVER_URL so private/enterprise installs work. https://claude.ai/code/session_01BseEU5nQJ5SGbWa7gm6iqt
Removes the external scripts/download-sr.sh — composite actions are self-contained via action.yml and referencing a file that didn't exist at prior release tags would break pinned users (e.g. uses: urmzd/sr@v1). The step now tries gh CLI first and falls back to curl. The fallback always targets github.com (not GITHUB_SERVER_URL) since release assets live there, not on a GHES instance. https://claude.ai/code/session_01BseEU5nQJ5SGbWa7gm6iqt
gh CLI may not be present on GHE runners; curl is universally available. Release assets are always fetched directly from github.com using the token. https://claude.ai/code/session_01BseEU5nQJ5SGbWa7gm6iqt
Floating tags like v1 are git tags with no release attached — binary assets only exist on exact version tags (v1.2.3). Use the GitHub API to resolve the ref: try releases/tags/$ref first, then search the release list for the latest tag sharing the same major prefix (v1 -> v1.x.x), falling back to the absolute latest release. https://claude.ai/code/session_01BseEU5nQJ5SGbWa7gm6iqt
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.
Moves the inline download logic from action.yml into scripts/download-sr.sh.
The script tries gh CLI first; if unavailable (e.g. GitHub Enterprise Server),
it falls back to curl using GITHUB_SERVER_URL so private/enterprise installs work.
https://claude.ai/code/session_01BseEU5nQJ5SGbWa7gm6iqt