Skip to content

Commit 34f917a

Browse files
committed
Update workflows
1 parent eff1e8e commit 34f917a

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

.github/workflows/import-translations.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,14 @@ jobs:
3737

3838
- name: Record pull request head data
3939
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
4243
4344
- name: Upload data
4445
uses: actions/upload-artifact@v4
4546
with:
4647
name: sync-translations-data
4748
path: |
4849
sync-translations.patch
49-
pr_head_data.sh
50+
git_vars.sh

.github/workflows/push-changes.yml

+6-4
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ jobs:
2828
git config user.name "github-actions[bot]"
2929
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
3030
31-
. pr_head_data.sh
31+
. git_vars.sh
3232
33-
git remote add weblate "$PR_HEAD_URL"
34-
git fetch weblate
33+
git remote add other "$PR_HEAD_URL"
34+
git fetch other
3535
git checkout "$PR_HEAD_REF"
3636
git status
3737
@@ -40,6 +40,8 @@ jobs:
4040

4141
- name: Commit and push changes
4242
run: |
43+
. git_vars.sh
44+
4345
git add .
44-
git commit -m "Import translations from Weblate"
46+
git commit -m "$COMMIT_MESSAGE"
4547
git push

0 commit comments

Comments
 (0)