File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change 7
7
- release-5.10
8
8
paths :
9
9
- ' en_US/**'
10
+ workflow_dispatch :
10
11
11
12
concurrency :
12
13
group : translate-ja-${{ github.ref }}
21
22
pull-requests : write
22
23
if : github.repository_owner == 'emqx'
23
24
steps :
25
+ - name : Check branch for manual runs
26
+ if : github.event_name == 'workflow_dispatch'
27
+ run : |
28
+ current_branch="${GITHUB_REF#refs/heads/}"
29
+ if [[ "$current_branch" != "release-5.9" && "$current_branch" != "release-5.10" ]]; then
30
+ echo "Error: Manual runs are only allowed on release-5.9 or release-5.10 branches"
31
+ echo "Current branch: $current_branch"
32
+ exit 1
33
+ fi
34
+ echo "Manual run approved on branch: $current_branch"
35
+
24
36
- name : Generate GitHub App token
25
37
id : app-token
26
38
uses : actions/create-github-app-token@df432ceedc7162793a195dd1713ff69aefc7379e # v2.0.6
@@ -110,7 +122,7 @@ jobs:
110
122
python3 .github/scripts/translate_to_ja.py "$file"
111
123
fi
112
124
done < modified_files.txt
113
- python3 .github/scripts/translate_to_ja.py dir.yaml
125
+ python3 .github/scripts/translate_to_ja.py ./ dir.yaml
114
126
115
127
- name : Update last translation commit hash
116
128
if : steps.modified-files.outputs.has_changes == 'true'
You can’t perform that action at this time.
0 commit comments