diff --git a/.github/workflows/docs-sync.translate.yaml b/.github/workflows/docs-sync.translate.yaml index a6e669a96c..ec8d93eebf 100644 --- a/.github/workflows/docs-sync.translate.yaml +++ b/.github/workflows/docs-sync.translate.yaml @@ -1,10 +1,11 @@ name: GPT Translate Sync on: - workflow_dispatch: - push: + workflow_dispatch: + pull_request: + types: [closed] branches: - - main + - main permissions: id-token: write @@ -16,6 +17,7 @@ permissions: jobs: gpt_translate: runs-on: ubuntu-latest + if: github.event.pull_request.merged == true && startsWith(github.event.pull_request.head.ref, 'gt-') steps: - name: Checkout