Skip to content

Commit 14e6399

Browse files
authored
feat: add step to update latest translation commit info in workflow (#21540)
1 parent 248afc3 commit 14e6399

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/ja-full-translation-google.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,12 @@ jobs:
5959
cd ..
6060
cp -r markdown-translator/output/markdowns/* docs/
6161
62+
- name: Update latest translation commit info
63+
run: |
64+
cd docs
65+
SOURCE_SHA=$(git rev-parse origin/${{ github.event.inputs.from }})
66+
echo '{"target":"${{ github.event.inputs.from }}","sha":"'$SOURCE_SHA'"}' > latest_translation_commit.json
67+
6268
- name: Git commit and push
6369
run: |
6470
cd docs

0 commit comments

Comments
 (0)