mirror of
https://github.com/inventree/InvenTree.git
synced 2026-11-10 02:47:49 +00:00
Bumps the dependencies group with 5 updates: | Package | From | To | | --- | --- | --- | | [actions/setup-python](https://github.com/actions/setup-python) | `7.0.0` | `7.1.0` | | [j178/prek-action](https://github.com/j178/prek-action) | `3.0.1` | `3.1.0` | | [oasdiff/oasdiff-action/diff](https://github.com/oasdiff/oasdiff-action) | `0.1.18` | `0.1.20` | | [github/codeql-action/upload-sarif](https://github.com/github/codeql-action) | `4.39.0` | `4.39.1` | | [crowdin/github-action](https://github.com/crowdin/github-action) | `3.4.0` | `3.5.0` | Updates `actions/setup-python` from 7.0.0 to 7.1.0 - [Release notes](https://github.com/actions/setup-python/releases) - [Commits](https://github.com/actions/setup-python/compare/5fda3b95a4ea91299a34e894583c3862153e4b97...6d4fd22b20465ccc0f7354476588e8df7c9ca0e0) Updates `j178/prek-action` from 3.0.1 to 3.1.0 - [Release notes](https://github.com/j178/prek-action/releases) - [Commits](https://github.com/j178/prek-action/compare/1382ad72dea72f9d53832f2bcb65b3e87a947204...44924fe9ef4a6f88253c4b6b1bf11c689d3ce53d) Updates `oasdiff/oasdiff-action/diff` from 0.1.18 to 0.1.20 - [Release notes](https://github.com/oasdiff/oasdiff-action/releases) - [Commits](https://github.com/oasdiff/oasdiff-action/compare/b9325c9e0a27ab65b0da3b766522cedec6be81dc...9ce3a29eb0e6478dd0140932a678c7fb59d08f22) Updates `github/codeql-action/upload-sarif` from 4.39.0 to 4.39.1 - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](https://github.com/github/codeql-action/compare/6f2ac81f5cd81fe351a197ba0b00d91d03cd2aee...9b3254085494b55a0f7c4c2b3d2d52cc712ce370) Updates `crowdin/github-action` from 3.4.0 to 3.5.0 - [Release notes](https://github.com/crowdin/github-action/releases) - [Commits](https://github.com/crowdin/github-action/compare/72955432d4aa4f6dd64cf17eeb88dd34d6ba064c...959dc74ac104447731cba99a016f85d0ae719788) --- updated-dependencies: - dependency-name: actions/setup-python dependency-version: 7.1.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: dependencies - dependency-name: j178/prek-action dependency-version: 3.1.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: dependencies - dependency-name: oasdiff/oasdiff-action/diff dependency-version: 0.1.20 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: dependencies - dependency-name: github/codeql-action/upload-sarif dependency-version: 4.39.1 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: dependencies - dependency-name: crowdin/github-action dependency-version: 3.5.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: dependencies ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
74 lines
2.5 KiB
YAML
74 lines
2.5 KiB
YAML
name: Update Translation Files
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
env:
|
|
python_version: 3.12
|
|
node_version: 24
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
synchronize-with-crowdin:
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: write
|
|
pull-requests: write
|
|
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
INVENTREE_DB_NAME: "./test_db.sqlite"
|
|
INVENTREE_DB_ENGINE: django.db.backends.sqlite3
|
|
INVENTREE_DEBUG: true
|
|
INVENTREE_LOG_LEVEL: INFO
|
|
INVENTREE_MEDIA_ROOT: ./media
|
|
INVENTREE_STATIC_ROOT: ./static
|
|
INVENTREE_BACKUP_DIR: ./backup
|
|
INVENTREE_SITE_URL: http://localhost:8000
|
|
|
|
steps:
|
|
- name: Checkout Code
|
|
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
with:
|
|
persist-credentials: false
|
|
- name: Environment Setup
|
|
uses: $/.github/actions/setup
|
|
with:
|
|
install: true
|
|
apt-dependency: gettext
|
|
- name: Make Translations
|
|
run: invoke dev.translate
|
|
- name: Remove compiled static files
|
|
run: rm -rf src/backend/InvenTree/static
|
|
- name: Remove all local changes that are not *.po files
|
|
run: |
|
|
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
|
git config --local user.name "github-actions[bot]"
|
|
git add src/backend/InvenTree/locale/en/LC_MESSAGES/django.po src/frontend/src/locales/en/messages.po
|
|
echo "Adding commit (or ignoring if no changes)"
|
|
git commit -m "add translations" || true
|
|
echo "Removing all other changes"
|
|
git reset --hard
|
|
echo "Resetting to HEAD~"
|
|
git reset HEAD~ || true
|
|
- name: crowdin action
|
|
uses: crowdin/github-action@959dc74ac104447731cba99a016f85d0ae719788 # v3.5.0
|
|
with:
|
|
upload_sources: true
|
|
upload_translations: false
|
|
download_translations: true
|
|
localization_branch_name: l10_crowdin
|
|
create_pull_request: true
|
|
pull_request_title: 'New Crowdin updates'
|
|
pull_request_body: 'New Crowdin translations by [Crowdin GH Action](https://github.com/crowdin/github-action)'
|
|
pull_request_base_branch_name: 'master'
|
|
pull_request_labels: 'translations'
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
|
|
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
|