chore(ci): stop creating non-translation related i18n PRs
This commit is contained in:
@@ -38,6 +38,14 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v5
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Configure Git
|
||||||
|
run: |
|
||||||
|
git config --global user.name "Owncast"
|
||||||
|
git config --global user.email "owncast@owncast.online"
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm install
|
run: npm install
|
||||||
@@ -50,23 +58,40 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
upload_sources: true
|
upload_sources: true
|
||||||
download_translations: true
|
download_translations: true
|
||||||
create_pull_request: true
|
create_pull_request: false
|
||||||
pull_request_title: 'New Translations'
|
|
||||||
localization_branch_name: translations
|
|
||||||
pull_request_base_branch_name: 'develop'
|
|
||||||
commit_message: 'Updated translations'
|
|
||||||
config: crowdin.yml
|
config: crowdin.yml
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
|
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
|
||||||
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
|
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
|
||||||
|
|
||||||
# - name: Commit changes
|
- name: Create Pull Request
|
||||||
# uses: EndBug/add-and-commit@v9
|
id: create_pr
|
||||||
# with:
|
uses: peter-evans/create-pull-request@v5
|
||||||
# author_name: Owncast
|
with:
|
||||||
# author_email: owncast@owncast.online
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
# message: 'Commit updated translations'
|
branch: translations
|
||||||
# add: 'web/i18n/**'
|
base: develop
|
||||||
# env:
|
title: 'New Translations from Crowdin'
|
||||||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
body: |
|
||||||
|
This PR contains updated translations downloaded from Crowdin.
|
||||||
|
|
||||||
|
**Changes include:**
|
||||||
|
- Updated translation files in `web/i18n/`
|
||||||
|
- Translations synchronized from Crowdin project
|
||||||
|
|
||||||
|
Please review the changes and merge if they look correct.
|
||||||
|
|
||||||
|
---
|
||||||
|
*This PR was created automatically by the translation workflow.*
|
||||||
|
commit-message: 'Updated translations from Crowdin'
|
||||||
|
author: 'Owncast <owncast@owncast.online>'
|
||||||
|
add-paths: |
|
||||||
|
web/i18n/**
|
||||||
|
delete-branch: true
|
||||||
|
|
||||||
|
- name: Log PR creation result
|
||||||
|
if: steps.create_pr.outputs.pull-request-number
|
||||||
|
run: |
|
||||||
|
echo "Created PR #${{ steps.create_pr.outputs.pull-request-number }}"
|
||||||
|
echo "PR URL: ${{ steps.create_pr.outputs.pull-request-url }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user