Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update translations flow with GitHub app #7615

Merged
merged 1 commit into from
Nov 10, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions .github/workflows/fetch_translations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,17 @@ jobs:
- name: Compute timestamp
id: timestamp
run: echo "TIMESTAMP=$(date +'%Y%m%d-%H%M%S')" >> $GITHUB_OUTPUT
- name: Generate translations app token
id: generate-translations-app-token
uses: actions/create-github-app-token@eaddb9eb7e4226c68cf4b39f167c83e5bd132b3e
with:
app-id: ${{ secrets.ANDROID_TRANSLATIONS_APP_ID }}
private-key: ${{ secrets.ANDROID_TRANSLATIONS_APP_PRIVATE_KEY }}
- name: Create Pull Request
uses: peter-evans/create-pull-request@5b4a9f6a9e2af26e5f02351490b90d01eb8ec1e55b4a9f6a9e2af26e5f02351490b90d01eb8ec1e5
uses: peter-evans/create-pull-request@153407881ec5c347639a548ade7d8ad1d6740e38
id: create-pull-request
with:
token: ${{ secrets.LOKALISE_CREATE_PR_TOKEN }}
token: ${{ steps.generate-translations-app-token.outputs.token }}
commit-message: Fetch latest Lokalize translations
title: Update translations
body: This pull request contains the latest translations from Lokalize.
Expand Down
Loading