Skip to content

Updates for file translations/frontend-app-enterprise-public-catalog/src/i18n/transifex_input.json in fr_CA on branch main #790

Updates for file translations/frontend-app-enterprise-public-catalog/src/i18n/transifex_input.json in fr_CA on branch main

Updates for file translations/frontend-app-enterprise-public-catalog/src/i18n/transifex_input.json in fr_CA on branch main #790

# Automatically merge pull requests created by the "Transifex Integration" github app
# https://github.com/apps/transifex-integration
name: Automerge Transifex GH app PRs
on:
- pull_request
jobs:
automerge-transifex-app-pr:
runs-on: ubuntu-latest
# Merges the pull request
steps:
- name: clone repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: merge pull request
id: mergePR
env:
# secrets can't be used in job conditionals, so we set them to env here
TRANSIFEX_APP_ACTOR_NAME: "${{ secrets.TRANSIFEX_APP_ACTOR_NAME }}"
TRANSIFEX_APP_ACTOR_ID: "${{ secrets.TRANSIFEX_APP_ACTOR_ID }}"
# This token requires Write access to the openedx-translations repo
GITHUB_TOKEN: ${{ secrets.EDX_TRANSIFEX_BOT_GITHUB_TOKEN }}
if: "${{ github.actor == env.TRANSIFEX_APP_ACTOR_NAME && github.actor_id == env.TRANSIFEX_APP_ACTOR_ID }}"
uses: nick-fields/retry@v2
with:
retry_wait_seconds: 60
max_attempts: 5
timeout_minutes: 15
retry_on: error
command: |
gh pr merge ${{ github.head_ref }} --rebase --auto
gh pr status --json mergedAt --jq '.["currentBranch"]["mergedAt"] | fromdate'