You've already forked phpmyadmin
mirror of
https://github.com/phpmyadmin/phpmyadmin.git
synced 2026-10-28 07:41:55 +03:00
53 lines
1.3 KiB
YAML
53 lines
1.3 KiB
YAML
name: Update translation files
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
schedule:
|
|
- cron: '0 0 * * 0'
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
update-po:
|
|
permissions:
|
|
contents: write # for Git to git push
|
|
name: Update po files
|
|
runs-on: ubuntu-latest
|
|
# Source: https://github.community/t/do-not-run-cron-workflows-in-forks/17636/2?u=williamdes
|
|
if: (github.event_name == 'schedule' && github.repository == 'phpmyadmin/phpmyadmin') || (github.event_name != 'schedule')
|
|
strategy:
|
|
matrix:
|
|
php-version: ["8.2"]
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v7
|
|
with:
|
|
persist-credentials: true
|
|
|
|
- name: Install Gettext
|
|
run: |
|
|
sudo apt-get install -y gettext
|
|
|
|
- name: Set up PHP ${{ matrix.php-version }}
|
|
uses: shivammathur/setup-php@v2
|
|
with:
|
|
php-version: ${{ matrix.php-version }}
|
|
coverage: none
|
|
|
|
- name: Install Composer dependencies
|
|
uses: ramsey/composer-install@v4
|
|
|
|
- name: Set up git config
|
|
run: |
|
|
git config user.name "phpMyAdmin bot"
|
|
git config user.email bot@phpmyadmin.net
|
|
|
|
- name: Update PO files
|
|
run: |
|
|
./bin/update-po
|
|
|
|
- name: Push changes
|
|
run: |
|
|
git push
|