mirror of
https://github.com/navidrome/navidrome.git
synced 2026-11-05 01:38:51 +01:00
Add job to create translations PRs
This commit is contained in:
parent
e2ea5eba8c
commit
9f684e5a69
2 changed files with 51 additions and 0 deletions
26
.github/workflows/update-translations.yml
vendored
Normal file
26
.github/workflows/update-translations.yml
vendored
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
name: Update Translations
|
||||
on:
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
- cron: '0 10 * * *'
|
||||
jobs:
|
||||
update-dep:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Get updated translations
|
||||
env:
|
||||
POEDITOR_PROJECTID: ${{ secrets.POEDITOR_PROJECTID }}
|
||||
POEDITOR_APIKEY: ${{ secrets.POEDITOR_APIKEY }}
|
||||
run: |
|
||||
./update-translations.sh
|
||||
npm install
|
||||
- name: Create Pull Request
|
||||
uses: peter-evans/create-pull-request@v4
|
||||
with:
|
||||
token: ${{ secrets.PAT }}
|
||||
commit-message: Update translations
|
||||
title: Update translations
|
||||
body: |
|
||||
- Update translations with latest from POEditor
|
||||
branch: update-translations
|
||||
Loading…
Add table
Add a link
Reference in a new issue