mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
29 lines
853 B
YAML
29 lines
853 B
YAML
|
name: Check / autofix locales
|
||
|
on:
|
||
|
push:
|
||
|
branches:
|
||
|
- dev
|
||
|
jobs:
|
||
|
i18n:
|
||
|
name: Check / auto apply black
|
||
|
runs-on: ubuntu-latest
|
||
|
steps:
|
||
|
- uses: actions/checkout@v2
|
||
|
- name: Apply reformating scripts
|
||
|
id: action_reformat
|
||
|
run: |
|
||
|
python3 test/remove_stale_i18n_strings.py
|
||
|
python3 test/autofix_locale_format.py
|
||
|
python3 test/reformat_locales.py
|
||
|
git diff -w --exit-cide
|
||
|
continue-on-error: true
|
||
|
- name: Create Pull Request
|
||
|
if: ${{ failure() }}
|
||
|
uses: peter-evans/create-pull-request@v3
|
||
|
with:
|
||
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||
|
title: "Reformat locale files"
|
||
|
commit-message: ":robot: Reformat locale files"
|
||
|
base: ${{ github.head_ref }}
|
||
|
branch: actions/i18n
|