branches.yml 671 B

1234567891011121314151617181920212223242526272829303132
  1. name: Synchronize Branches
  2. on:
  3. pull_request:
  4. branches:
  5. - 'dev'
  6. types: [ closed ]
  7. release:
  8. types:
  9. - published
  10. jobs:
  11. weblate:
  12. runs-on: ubuntu-latest
  13. if: github.event.pull_request.merged == true || github.event.action == 'published'
  14. steps:
  15. - name: Checkout
  16. uses: actions/checkout@v4
  17. - name: Setup Python
  18. uses: actions/setup-python@v5
  19. with:
  20. python-version: '3.10'
  21. cache: pip
  22. - name: Install wlc
  23. run: pip install wlc
  24. - name: Update Repository
  25. env:
  26. WEBLATE_TOKEN: ${{ secrets.WEBLATE_TOKEN }}
  27. run: wlc --key $WEBLATE_TOKEN pull