Scheduling infrastructure for absolutely everyone.
chore: Move Replexica to run on pushes to main (#16394)
Keith Williams933ffcbf6960
diff --git a/.github/workflows/i18n.yml b/.github/workflows/i18n.ymlnew file mode 100644index 00000000000..e469c75b498--- /dev/null+++ b/.github/workflows/i18n.yml@@ -0,0 +1,25 @@+name: Run i18n AI automation+on:+ push:+ branches:+ - main+concurrency:+ group: ${{ github.workflow }}-main+ cancel-in-progress: false++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: truediff --git a/.github/workflows/pr.yml b/.github/workflows/pr.ymlindex c9b8494dd3e..027d32363ad 100644--- a/.github/workflows/pr.yml+++ b/.github/workflows/pr.yml@@ -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 checkneeds: [changes, check-label, deps]