This repository has been archived by the owner on Jul 18, 2024. It is now read-only.
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: Run validate translation | |
on: | |
pull_request: | |
workflow_dispatch: | |
# Cancel in-progress PR verification workflows. We only care about verifying the latest commit. | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number }} | |
cancel-in-progress: true | |
jobs: | |
validate_translations: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install dependencies | |
shell: bash | |
run: sudo apt-get install -y gettext git-core | |
- name: Check out repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
ref: ${{ github.event.pull_request.head.sha }} | |
- name: Rebase | |
uses: ./.github/actions/rebase | |
- name: Set Environment Variables | |
uses: ./.github/actions/set_vars | |
with: | |
varFilePath: ./.github/variables/pr_verification.env | |
- name: Set up Java | |
uses: actions/setup-java@v4 | |
with: | |
distribution: ${{ env.JAVA_DISTRIBUTION }} | |
java-version: ${{ env.JAVA_VERSION }} | |
- name: Run validate translation | |
uses: gradle/gradle-build-action@v3 | |
with: | |
arguments: validate_translation |