ci: use bot to update locales
This commit is contained in:
parent
d4a4c34c4d
commit
be3964c108
|
@ -88,9 +88,15 @@ jobs:
|
||||||
locale:
|
locale:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
if: github.event_name == 'schedule'
|
if: >
|
||||||
|
github.repository_owner == 'libretime' && (
|
||||||
|
github.event_name == 'schedule' ||
|
||||||
|
github.event_name == 'workflow_dispatch'
|
||||||
|
)
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.LIBRETIME_BOT_TOKEN }}
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
|
@ -99,11 +105,13 @@ jobs:
|
||||||
|
|
||||||
- name: Update locales
|
- name: Update locales
|
||||||
run: |
|
run: |
|
||||||
make -C legacy/locale update
|
|
||||||
|
|
||||||
git config --global user.name "libretime-bot"
|
git config --global user.name "libretime-bot"
|
||||||
git config --global user.email "libretime-bot@users.noreply.github.com"
|
git config --global user.email "libretime-bot@users.noreply.github.com"
|
||||||
|
|
||||||
|
git pull
|
||||||
|
|
||||||
|
make -C legacy/locale update
|
||||||
|
|
||||||
git add legacy/locale
|
git add legacy/locale
|
||||||
git diff-index --quiet HEAD -- legacy/locale || {
|
git diff-index --quiet HEAD -- legacy/locale || {
|
||||||
git commit --message "chore(legacy): update locales"
|
git commit --message "chore(legacy): update locales"
|
||||||
|
|
Loading…
Reference in New Issue