Skip to content
This repository has been archived by the owner on Sep 10, 2024. It is now read-only.

Download translation files from Localazy #11

Download translation files from Localazy

Download translation files from Localazy #11

name: Download translation files from Localazy
on:
workflow_dispatch:
secrets:
BOT_GITHUB_TOKEN:
required: true
jobs:
download:
runs-on: ubuntu-22.04
permissions:
contents: read
steps:
- name: Checkout the code
uses: actions/[email protected]
- name: Download translation files
uses: localazy/[email protected]
- name: "Fix the owner of the downloaded files"
run: "sudo chown runner:docker translations/*.json frontend/locales/*.json"
- name: Create Pull Request
id: cpr
uses: peter-evans/[email protected]
with:
token: ${{ secrets.BOT_GITHUB_TOKEN }}
branch: actions/localazy-download
delete-branch: true
title: Localazy Download
commit-message: Translations updates
- name: Enable automerge
run: gh pr merge --merge --auto "$PR_NUMBER"
if: steps.cpr.outputs.pull-request-operation == 'created'
env:
GH_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN }}
PR_NUMBER: ${{ steps.cpr.outputs.pull-request-number }}