Upload mod jar translations #5
This file contains 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
name: Upload mod jar translations | |
on: | |
workflow_dispatch: | |
inputs: | |
target_lang: | |
description: "Target language to run" | |
required: true | |
type: string # Not a choice to prevent accident | |
env: | |
PARATRANZ_TOKEN: ${{ secrets.PARATRANZ_TOKEN }} | |
jobs: | |
upload-jar-translations: | |
name: Upload mod jar translations | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: master | |
- name: Get project ID | |
id: get-project-id | |
uses: ./.github/actions/get-project-id | |
with: | |
target_lang: ${{ inputs.target_lang }} | |
- name: Ensure Dependencies | |
uses: ./.github/actions/ensure-dependencies | |
- name: Download nightly | |
uses: ./.github/actions/download-nightly | |
with: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
directory: .nightly-temp | |
- name: Upload mod jar translations | |
run: >- | |
poetry run python main.py action upload-jar-translations | |
--modpack-path='.nightly-temp/nightly' --interactive=False | |
env: | |
PARATRANZ_PROJECT_ID: ${{ steps.get-project-id.outputs.project_id }} | |
TARGET_LANG: ${{ inputs.target_lang }} |