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

chore: Move Replexica to run on pushes to main #16394

Merged
merged 3 commits into from
Aug 29, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
25 changes: 25 additions & 0 deletions .github/workflows/i18n.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Run i18n AI automation
on:
push:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
i18n:
name: Run i18n
runs-on: buildjet-2vcpu-ubuntu-2204
permissions:
actions: write
contents: write
pull-requests: write
steps:
- uses: actions/checkout@v4
- uses: replexica/replexica@main
env:
GH_TOKEN: ${{ github.token }}
with:
api-key: ${{ secrets.CI_REPLEXICA_API_KEY }}
pull-request: true
23 changes: 0 additions & 23 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,29 +97,6 @@ jobs:
if: ${{ needs.changes.outputs.has-files-requiring-all-checks == 'true' }}
uses: ./.github/workflows/yarn-install.yml

i18n:
name: Run i18n
runs-on: buildjet-2vcpu-ubuntu-2204
permissions:
actions: write
contents: write
pull-requests: write
steps:
- uses: actions/checkout@v4
# Doing this custom checkout of the common.json files from the PR since we don't
# want to checkout the entire branch for security reasons as this job is granted
# write permissions.
- run: git fetch --depth=2 origin ${{ github.event.pull_request.head.sha }}
if: ${{ github.event.pull_request.head.sha != '' }}
- run: find apps/web/public/static/locales/** -name "common.json" | xargs git checkout ${{ github.event.pull_request.head.sha }} --
if: ${{ github.event.pull_request.head.sha != '' }}
shell: bash
- run: git checkout ${{ github.event.pull_request.head.sha }} -- i18n.json
if: ${{ github.event.pull_request.head.sha != '' }}
- uses: replexica/replexica@main
with:
api-key: ${{ secrets.CI_REPLEXICA_API_KEY }}

type-check:
name: Type check
needs: [changes, check-label, deps]
Expand Down
Loading