Skip to content

Commit

Permalink
[5.2] Translation Update (joomla#44035)
Browse files Browse the repository at this point in the history
  • Loading branch information
joomla-translation-bot authored Sep 8, 2024
1 parent 8eb4679 commit b7a564e
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/create-translation-pull-request-v5.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,18 @@ name: Create translation pull request J5

on:
push:
branches: [ translation ]
branches: [ translation5 ]

workflow_dispatch:

schedule:
# Run daily at 7:32
- cron: '32 7 * * *'

env:
JOOMLA_MAJOR_VERSION: 5
JOOMLA_MINOR_VERSION: 5.2

permissions:
contents: read

Expand All @@ -25,6 +29,7 @@ jobs:
- uses: actions/checkout@v3
# We need the full depth to create / update the pull request against the main repo
with:
ref: translation5
fetch-depth: 0
- uses: actions/setup-node@v3
with:
Expand All @@ -37,7 +42,7 @@ jobs:
git remote add upstream https://github.com/joomla/joomla-cms.git
git fetch upstream
git checkout --progress --force -B translation5 refs/remotes/origin/translation5
git merge upstream/5.1-dev
git merge upstream/${{ env.JOOMLA_MINOR_VERSION }}-dev
- name: Fetch and extract translations
run: |
Expand All @@ -49,11 +54,9 @@ jobs:
# We use a simple copy paste syntax here if needed customization for different directories
run: |
cd ..
SYNC_VERSION="v5"
SYNC_PATH="installation/language/"
echo ${SYNC_PATH}
rsync -i -rptgo --checksum --ignore-times --delete --exclude="*en-GB*" core-translations-main/joomla_${SYNC_VERSION}/translations/core/${SYNC_PATH} joomla-cms/${SYNC_PATH}
rsync -i -rptgo --checksum --ignore-times --delete --exclude="*en-GB*" core-translations-main/joomla_v${{ env.JOOMLA_MAJOR_VERSION }}/translations/core/${SYNC_PATH} joomla-cms/${SYNC_PATH}
- name: Update static error pages
run: |
Expand All @@ -73,5 +76,5 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.API_TOKEN_GITHUB }}
run: |
gh pr list -R joomla/joomla-cms --state open --author joomla-translation-bot -S "[5.x] Translation Update" | grep -v "No pull" || \
gh pr create --title "[5.x] Translation Update" --body "Automatically created pull request based on core-translation repository changes" -R joomla/joomla-cms --base 5.1-dev
gh pr list -R joomla/joomla-cms --state open --author joomla-translation-bot -S "[${{ env.JOOMLA_MINOR_VERSION }}] Translation Update" --base ${{ env.JOOMLA_MINOR_VERSION }}-dev | grep -v "No pull" || \
gh pr create --title "[${{ env.JOOMLA_MINOR_VERSION }}] Translation Update" --body "Automatically created pull request based on core-translation repository changes" -R joomla/joomla-cms --base ${{ env.JOOMLA_MINOR_VERSION }}-dev

0 comments on commit b7a564e

Please sign in to comment.