Skip to content

Commit aaa53bb

Browse files
committed
ci: workflow_dispatch
1 parent b82abe5 commit aaa53bb

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/translate.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ on:
55
branches: ["main", "master"]
66
paths:
77
- "localizations/en_US.json"
8+
workflow_dispatch:
9+
inputs:
10+
commit_sha:
11+
description: "Commit SHA to checkout (optional, defaults to latest)"
12+
required: false
13+
type: string
814

915
jobs:
1016
translate:
@@ -17,6 +23,7 @@ jobs:
1723
- name: Checkout repository
1824
uses: actions/checkout@v4
1925
with:
26+
ref: ${{ github.event.inputs.commit_sha || github.sha }}
2027
fetch-depth: 0
2128
- name: Set up Python
2229
uses: actions/setup-python@v5

0 commit comments

Comments
 (0)