File tree 2 files changed +10
-7
lines changed
2 files changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -37,13 +37,14 @@ jobs:
37
37
38
38
- name : Record pull request head data
39
39
run : |
40
- echo 'export PR_HEAD_URL="${{ github.event.pull_request.head.repo.clone_url }}"' > pr_head_data.sh
41
- echo 'export PR_HEAD_REF="${{ github.event.pull_request.head.ref }}"' >> pr_head_data.sh
40
+ echo 'export PR_HEAD_URL="${{ github.event.pull_request.head.repo.clone_url }}"' > git_vars.sh
41
+ echo 'export PR_HEAD_REF="${{ github.event.pull_request.head.ref }}"' >> git_vars.sh
42
+ echo 'export COMMIT_MESSAGE="Import translations from Weblate"' >> git_vars.sh
42
43
43
44
- name : Upload data
44
45
uses : actions/upload-artifact@v4
45
46
with :
46
47
name : sync-translations-data
47
48
path : |
48
49
sync-translations.patch
49
- pr_head_data .sh
50
+ git_vars .sh
Original file line number Diff line number Diff line change @@ -28,10 +28,10 @@ jobs:
28
28
git config user.name "github-actions[bot]"
29
29
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
30
30
31
- . pr_head_data .sh
31
+ . git_vars .sh
32
32
33
- git remote add weblate "$PR_HEAD_URL"
34
- git fetch weblate
33
+ git remote add other "$PR_HEAD_URL"
34
+ git fetch other
35
35
git checkout "$PR_HEAD_REF"
36
36
git status
37
37
40
40
41
41
- name : Commit and push changes
42
42
run : |
43
+ . git_vars.sh
44
+
43
45
git add .
44
- git commit -m "Import translations from Weblate "
46
+ git commit -m "$COMMIT_MESSAGE "
45
47
git push
You can’t perform that action at this time.
0 commit comments