Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions .github/workflows/translation_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,10 @@ jobs:
ref: ${{github.event.pull_request.head.ref}}
repository: ${{github.event.pull_request.head.repo.full_name}}

- name: Get OpenRCT2 develop (for en-GB.txt)
uses: actions/checkout@v4
with:
repository: OpenRCT2/OpenRCT2
ref: develop
path: OpenRCT2
- 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

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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


- name: Checkout translations before PR changes (for comparsion)
uses: actions/checkout@v4
Expand Down