Files
letro-authentication-service/.github/workflows/translations-download.yaml
dependabot[bot] 40ef557c17 build(deps): bump actions/checkout from 4.1.7 to 4.2.0
Bumps [actions/checkout](https://github.com/actions/checkout) from 4.1.7 to 4.2.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v4.1.7...v4.2.0)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-01 11:22:51 +02:00

39 lines
1.1 KiB
YAML

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/checkout@v4.2.0
- name: Download translation files
uses: localazy/download@v1.1.0
- 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/create-pull-request@v6.1.0
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 }}