Skip to content

Add files via upload #1

Add files via upload

Add files via upload #1

name: sync-stringtables
on: [workflow_dispatch]
env:
CORE_TOLGEE_API_TOKEN: ${{ secrets.CORE_TOLGEE_API_TOKEN }}
CONFIG_FIXES_TOLGEE_API_TOKEN: ${{ secrets.CONFIG_FIXES_TOLGEE_API_TOKEN }}
EVENTS_TOLGEE_API_TOKEN: ${{ secrets.EVENTS_TOLGEE_API_TOKEN }}
GARAGE_TOLGEE_API_TOKEN: ${{ secrets.GARAGE_TOLGEE_API_TOKEN }}
GEAR_TOLGEE_API_TOKEN: ${{ secrets.GEAR_TOLGEE_API_TOKEN }}
JEROEN_ARSENAL_TOLGEE_API_TOKEN: ${{ secrets.JEROEN_ARSENAL_TOLGEE_API_TOKEN }}
GUI_TOLGEE_API_TOKEN: ${{ secrets.GUI_TOLGEE_API_TOKEN }}
LOGISTICS_TOLGEE_API_TOKEN: ${{ secrets.LOGISTICS_TOLGEE_API_TOKEN }}
MAPS_TOLGEE_API_TOKEN: ${{ secrets.MAPS_TOLGEE_API_TOKEN }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: unstable
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Install antistasi_translation_sync package
run: pip install "Tools/antistasi_translation_sync-0.5.0-py3-none-any.whl"
- name: actual syncing
run: antistasi-translation-sync -u "https://tolgee.targetingsnake.de" AUTO_ALL
- name: Set current date as env variable
run: echo "NOW=$(date +'%Y-%m-%dT%H:%M:%S')" >> $GITHUB_ENV
- name: Create Branch
uses: peterjgrainger/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
branch: 'tolgee-update'
- name: Switch to new branch
- uses: actions/checkout@v4
with:
ref: tolgee-update
- name: Commit files
run: |
git config user.name github-actions
git config user.email [email protected]
git add .
git commit -m "synchronised Stringtables"
git push
- name: Switch to unstable
- uses: actions/checkout@v4
with:
ref: unstable
- name: Create Pull Request
id: cpr
uses: peter-evans/create-pull-request@v5
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: Automated Tolgee Update
committer: GitHub <[email protected]>
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
signoff: false
branch: tolgee-update
delete-branch: false
title: '[Example] Update report'
body: |
Automated Tolgee Update
labels: |
localisation
automated pr
assignees: Bob-Murphy
reviewers: Bob-Murphy
draft: false