Fix: use curl instead of checkout for en-GB.txt#3490
Open
Davis-3450 wants to merge 3 commits into
Open
Conversation
Replace full OpenRCT2 checkout with direct file download. No functional change,
tupaschoal
reviewed
Jul 10, 2026
| - name: get en-GB.txt (curl) | ||
| run: | | ||
| mkdir -p OpenRCT2/data/language | ||
| curl -sSLf https://raw.githubusercontent.com/OpenRCT2/OpenRCT2/develop/data/language/en-GB.txt -o OpenRCT2/data/language/en-GB.txt |
Member
There was a problem hiding this comment.
I understand the motivation for not checking out everything so that it can be faster, but I'm not sure using curl is the best option, since we need to work with GH's URL. GitHub actions provides a way to checkout only a given file, so we could instead do:
Suggested change
| curl -sSLf https://raw.githubusercontent.com/OpenRCT2/OpenRCT2/develop/data/language/en-GB.txt -o OpenRCT2/data/language/en-GB.txt | |
| - name: Get OpenRCT2 develop (for en-GB.txt) | |
| uses: actions/checkout@v4 | |
| with: | |
| repository: OpenRCT2/OpenRCT2 | |
| ref: develop | |
| path: OpenRCT2 | |
| sparse-checkout: | | |
| data/language/en-GB.txt | |
| sparse-checkout-cone-mode: false |
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.
Replaces the
actions/checkoutof theOpenRCT2/OpenRCT2repo with a directcurldownload ofen-GB.txt.en-GB.txtfile instead of cloning the whole repo.OpenRCT2/data/language/en-GB.txt) from the same source (developbranch).