Skip to content

Commit 76320d1

Browse files
authored
fix: git async (#2371)
* fix: git async * fix: closed
1 parent 9f2d113 commit 76320d1

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/docs-sync.translate.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
name: GPT Translate Sync
22

33
on:
4-
workflow_dispatch:
5-
push:
4+
workflow_dispatch:
5+
pull_request:
6+
types: [closed]
67
branches:
7-
- main
8+
- main
89

910
permissions:
1011
id-token: write
@@ -16,6 +17,7 @@ permissions:
1617
jobs:
1718
gpt_translate:
1819
runs-on: ubuntu-latest
20+
if: github.event.pull_request.merged == true && startsWith(github.event.pull_request.head.ref, 'gt-')
1921

2022
steps:
2123
- name: Checkout

0 commit comments

Comments
 (0)