Updating dependencies #55
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Automatically Translate Android App | |
on: # yamllint disable-line rule:truthy | |
pull_request: | |
branches: ["main"] | |
types: ['opened', 'edited', 'reopened', 'synchronize', 'ready_for_review'] | |
paths: | |
- "**/strings.xml" | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
# Run locally with "act -j translateAndroid" | |
translateAndroid: | |
if: '! github.event.pull_request.draft' | |
permissions: | |
contents: write | |
pull-requests: write | |
runs-on: ubuntu-latest | |
timeout-minutes: 60 | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.head_ref }} | |
- name: Translate strings.xml to supported languages | |
uses: gyund/android-auto-translate@delay | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v4 | |
with: | |
committer: "ashishb's Translation Bot <ashishb+android-auto-translate@ashishb.net>" | |
title: "[Bot]Auto-generated translations for non-English languages" | |
body: "Auto-generated translations by [Android Auto Translate](https://github.com/ashishb/android-auto-translate) bot" | |
branch: translate-pr-${{ github.head_ref }} | |