Skip to content

Commit

Permalink
refactor:integrate translations sync into release_workflow.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
JarbasAl committed Feb 27, 2025
1 parent cda2f38 commit c50ac41
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 35 deletions.
31 changes: 28 additions & 3 deletions .github/workflows/release_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,35 @@ on:
pull_request:
types: [closed]
branches: [dev]
workflow_dispatch:

jobs:

translations:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v2
with:
ref: dev
fetch-depth: 0 # otherwise, there would be errors pushing refs to the destination repository.
- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: "3.11"

- name: Sync translations by gitlocalize-app[bot]
run: |
python scripts/sync_translations.py
- name: Commit to dev
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Update translations
branch: dev

publish_alpha:
if: github.event.pull_request.merged == true
needs: translations
uses: TigreGotico/gh-automations/.github/workflows/publish-alpha.yml@master
secrets: inherit
with:
Expand All @@ -34,6 +59,7 @@ jobs:
message: |
new ${{ github.event.repository.name }} PR merged! https://github.com/${{ github.repository }}/pull/${{ github.event.number }}
publish_pypi:
needs: publish_alpha
if: success() # Ensure this job only runs if the previous job succeeds
Expand All @@ -46,7 +72,7 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: "3.10"
python-version: "3.11"
- name: Install Build Tools
run: |
python -m pip install build wheel
Expand All @@ -61,7 +87,6 @@ jobs:
with:
password: ${{secrets.PYPI_TOKEN}}


propose_release:
needs: publish_alpha
if: success() # Ensure this job only runs if the previous job succeeds
Expand Down
32 changes: 0 additions & 32 deletions .github/workflows/sync_tx.yml

This file was deleted.

0 comments on commit c50ac41

Please sign in to comment.