Automerge Crowdin #163
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: Automerge Crowdin | |
on: | |
workflow_dispatch: | |
# At 02:00 (UTC) daily | |
# https://crontab.guru/#0_2_*_*_* | |
# 1 hour before the nightly build | |
schedule: | |
- cron: '0 2 * * *' | |
jobs: | |
automerge-crowdin-pr: | |
runs-on: ubuntu-latest | |
permissions: | |
pull-requests: write | |
steps: | |
- uses: google-github-actions/auth@v2 | |
with: | |
project_id: celo-mobile-mainnet | |
credentials_json: ${{ secrets.MAINNET_SERVICE_ACCOUNT_KEY }} | |
- name: Google Secrets | |
id: google-secrets | |
uses: google-github-actions/get-secretmanager-secrets@v2.1.3 | |
with: | |
secrets: |- | |
VALORA_BOT_TOKEN:projects/1027349420744/secrets/VALORA_BOT_TOKEN | |
- uses: actions/checkout@v4 | |
- uses: actions/github-script@v7 | |
with: | |
github-token: ${{ steps.google-secrets.outputs.VALORA_BOT_TOKEN }} | |
script: | | |
const script = require('.github/scripts/automergeCrowdinPr.js') | |
await script({github, context, core}) |