mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-20 05:59:04 -05:00
Some checks are pending
Build Desktop / Configure (push) Waiting to run
Build Desktop / ${{matrix.distro}} ${{matrix.version}} (Debian, DEB, 11) (push) Blocked by required conditions
Build Desktop / ${{matrix.distro}} ${{matrix.version}} (Debian, DEB, 13) (push) Blocked by required conditions
Build Desktop / ${{matrix.distro}} ${{matrix.version}} (Debian, DEB, skip, 12) (push) Blocked by required conditions
Build Desktop / ${{matrix.distro}} ${{matrix.version}} (Fedora, RPM, 43) (push) Blocked by required conditions
Build Desktop / ${{matrix.distro}} ${{matrix.version}} (Fedora, RPM, skip, 42) (push) Blocked by required conditions
Build Desktop / ${{matrix.distro}} ${{matrix.version}} (Servatrice_Debian, DEB, yes, skip, 11) (push) Blocked by required conditions
Build Desktop / ${{matrix.distro}} ${{matrix.version}} (Ubuntu, DEB, 24.04) (push) Blocked by required conditions
Build Desktop / ${{matrix.distro}} ${{matrix.version}} (Ubuntu, DEB, skip, 22.04) (push) Blocked by required conditions
Build Desktop / ${{matrix.distro}} ${{matrix.version}} (yes, Arch, skip) (push) Blocked by required conditions
Build Desktop / ${{matrix.os}} ${{matrix.target}}${{ matrix.soc == 'Intel' && ' Intel' || '' }}${{ matrix.type == 'Debug' && ' Debug' || '' }} (Windows10-installer, true, Visual Studio 17 2022, x64, 1, Windows, -Win10, win64_msvc2019_64, qtimageformats qtmultimedia qt… (push) Blocked by required conditions
Build Desktop / ${{matrix.os}} ${{matrix.target}}${{ matrix.soc == 'Intel' && ' Intel' || '' }}${{ matrix.type == 'Debug' && ' Debug' || '' }} (Windows7-installer, true, Visual Studio 17 2022, x64, 1, Windows, -Win7, win64_msvc2019_64, 5.15.*, windows-2022, 7, Release) (push) Blocked by required conditions
Build Desktop / ${{matrix.os}} ${{matrix.target}}${{ matrix.soc == 'Intel' && ' Intel' || '' }}${{ matrix.type == 'Debug' && ' Debug' || '' }} (false, Ninja, macOS, clang_64, qtimageformats qtmultimedia qtwebsockets, 6.6.*, macos-15, Apple, 15, Debug, 1, 16.4) (push) Blocked by required conditions
Build Desktop / ${{matrix.os}} ${{matrix.target}}${{ matrix.soc == 'Intel' && ' Intel' || '' }}${{ matrix.type == 'Debug' && ' Debug' || '' }} (macOS13_Intel-package, false, Ninja, 1, macOS, 13, -macOS13_Intel, clang_64, qtimageformats qtmultimedia qtwebsockets, 6.6.*… (push) Blocked by required conditions
Build Desktop / ${{matrix.os}} ${{matrix.target}}${{ matrix.soc == 'Intel' && ' Intel' || '' }}${{ matrix.type == 'Debug' && ' Debug' || '' }} (macOS14-package, false, Ninja, 1, macOS, -macOS14, clang_64, qtimageformats qtmultimedia qtwebsockets, 6.6.*, macos-14, Appl… (push) Blocked by required conditions
Build Desktop / ${{matrix.os}} ${{matrix.target}}${{ matrix.soc == 'Intel' && ' Intel' || '' }}${{ matrix.type == 'Debug' && ' Debug' || '' }} (macOS15-package, false, Ninja, 1, macOS, -macOS15, clang_64, qtimageformats qtmultimedia qtwebsockets, 6.6.*, macos-15, Appl… (push) Blocked by required conditions
Build Docker Image / amd64 & arm64 (push) Waiting to run
74 lines
2.7 KiB
YAML
74 lines
2.7 KiB
YAML
name: Update Translations
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
schedule:
|
|
# runs in the middle of each month starting a quarter (UTC) = two weeks after new strings are built
|
|
- cron: '0 0 15 1,4,7,10 *'
|
|
pull_request:
|
|
paths:
|
|
- '.tx/**'
|
|
- '.github/workflows/translations-pull.yml'
|
|
|
|
jobs:
|
|
translations:
|
|
# Do not run the scheduled workflow on forks
|
|
if: github.event_name != 'schedule' || github.repository_owner == 'Cockatrice'
|
|
|
|
name: Pull languages
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout repo
|
|
uses: actions/checkout@v6
|
|
|
|
- name: Pull translated strings from Transifex
|
|
uses: transifex/cli-action@v2
|
|
with:
|
|
# used config file: https://github.com/Cockatrice/Cockatrice/blob/master/.tx/config
|
|
# https://github.com/transifex/cli#pulling-files-from-transifex
|
|
token: ${{ secrets.TX_TOKEN }}
|
|
args: pull --force --all
|
|
|
|
- name: Create pull request
|
|
if: github.event_name != 'pull_request'
|
|
id: create_pr
|
|
uses: peter-evans/create-pull-request@v8
|
|
with:
|
|
add-paths: |
|
|
cockatrice/translations/*.ts
|
|
oracle/translations/*.ts
|
|
webclient/public/locales/*/translation.json
|
|
commit-message: Update translation files
|
|
# author is the owner of the commit
|
|
author: github-actions <github-actions@github.com>
|
|
branch: ci-update_translations
|
|
delete-branch: true
|
|
title: 'Update translations'
|
|
body: |
|
|
Pulled all translated strings from [Transifex][1].
|
|
|
|
---
|
|
*This PR is automatically generated and updated by the workflow at `.github/workflows/translations-pull.yml`. Review [action runs][2].*<br>
|
|
*After merging, all new languages and translations are available in the next build.*
|
|
|
|
[1]: https://explore.transifex.com/cockatrice/cockatrice/
|
|
[2]: https://github.com/Cockatrice/Cockatrice/actions/workflows/translations-pull.yml?query=branch%3Amaster
|
|
labels: |
|
|
CI
|
|
Translation
|
|
draft: false
|
|
|
|
- name: PR Status
|
|
if: github.event_name != 'pull_request'
|
|
shell: bash
|
|
env:
|
|
STATUS: ${{ steps.create_pr.outputs.pull-request-operation }}
|
|
run: |
|
|
if [[ "$STATUS" == "none" ]]; then
|
|
echo "PR #${{ steps.create_pr.outputs.pull-request-number }} unchanged!" >> $GITHUB_STEP_SUMMARY
|
|
else
|
|
echo "PR #${{ steps.create_pr.outputs.pull-request-number }} $STATUS!" >> $GITHUB_STEP_SUMMARY
|
|
fi
|
|
echo "URL: ${{ steps.create_pr.outputs.pull-request-url }}" >> $GITHUB_STEP_SUMMARY
|