mirror of https://github.com/ghostfolio/ghostfolio
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
977 B
41 lines
977 B
2 weeks ago
|
name: Extract locales
|
||
|
|
||
|
on:
|
||
|
push:
|
||
|
branches:
|
||
|
- main
|
||
|
|
||
|
permissions:
|
||
|
contents: write
|
||
|
pull-requests: write
|
||
|
|
||
|
jobs:
|
||
|
extract_locales:
|
||
|
runs-on: ubuntu-latest
|
||
|
steps:
|
||
|
- name: Checkout code
|
||
|
uses: actions/checkout@v4
|
||
|
with:
|
||
|
fetch-depth: 0
|
||
|
|
||
|
- name: Install dependencies
|
||
|
run: npm ci
|
||
|
|
||
|
- name: Extract locales
|
||
|
run: npm run extract-locales
|
||
|
|
||
|
- name: Check changes
|
||
|
id: verify-changed-files
|
||
|
uses: tj-actions/verify-changed-files@v20
|
||
|
|
||
|
- name: Create pull request
|
||
|
if: steps.verify-changed-files.outputs.files_changed == 'true'
|
||
|
uses: peter-evans/create-pull-request@v7
|
||
|
with:
|
||
|
author: 'github-actions[bot] <github-actions[bot]@users.noreply.github.com>'
|
||
|
branch: 'feature/update-locales'
|
||
|
commit-message: 'Update locales'
|
||
|
delete-branch: true
|
||
|
title: 'Feature/update locales'
|
||
|
token: ${{ secrets.GITHUB_TOKEN }}
|