Skip to content

Commit 1f40cfc

Browse files
committed
Make indentation consistent @ translation workflow
1 parent d82e887 commit 1f40cfc

1 file changed

Lines changed: 58 additions & 58 deletions

File tree

.github/workflows/translation.yml

Lines changed: 58 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -1,77 +1,77 @@
11
name: Translation
22

33
on:
4-
workflow_run:
5-
workflows:
6-
- Test
7-
branches:
8-
- main
9-
types:
10-
- completed
4+
workflow_run:
5+
workflows:
6+
- Test
7+
branches:
8+
- main
9+
types:
10+
- completed
1111

1212
env:
1313
I18N_BRANCH: translation/source
1414

1515
jobs:
16-
build:
17-
runs-on: ubuntu-latest
16+
build:
17+
runs-on: ubuntu-latest
1818

19-
steps:
20-
- name: Grab the repo src
21-
uses: actions/checkout@v2
22-
with:
23-
fetch-depth: 0 # To reach the common commit
24-
- name: Setup git user as [bot]
25-
# Refs:
26-
# * https://github.community/t/github-actions-bot-email-address/17204/6
27-
# * https://github.com/actions/checkout/issues/13#issuecomment-724415212
28-
uses: fregante/setup-git-user@v1.0.1
19+
steps:
20+
- name: Grab the repo src
21+
uses: actions/checkout@v2
22+
with:
23+
fetch-depth: 0 # To reach the common commit
24+
- name: Setup git user as [bot]
25+
# Refs:
26+
# * https://github.community/t/github-actions-bot-email-address/17204/6
27+
# * https://github.com/actions/checkout/issues/13#issuecomment-724415212
28+
uses: fregante/setup-git-user@v1.0.1
2929

30-
- name: Switch to the translation source branch
31-
run: |
32-
sh -x
30+
- name: Switch to the translation source branch
31+
run: |
32+
sh -x
3333
34-
git fetch origin \
35-
'+refs/heads/${{
36-
env.I18N_BRANCH
37-
}}:refs/remotes/origin/${{
38-
env.SRC_BRANCH
39-
}}'
34+
git fetch origin \
35+
'+refs/heads/${{
36+
env.I18N_BRANCH
37+
}}:refs/remotes/origin/${{
38+
env.SRC_BRANCH
39+
}}'
4040
41-
git checkout -B '${{ env.I18N_BRANCH }}' \
42-
'origin/${{ env.I18N_BRANCH }}'
41+
git checkout -B '${{ env.I18N_BRANCH }}' \
42+
'origin/${{ env.I18N_BRANCH }}'
4343
44-
- name: >-
45-
Merge '${{ github.event.repository.default_branch }}'
46-
to '${{ env.I18N_BRANCH }}'
47-
run: |
48-
sh -x
44+
- name: >-
45+
Merge '${{ github.event.repository.default_branch }}'
46+
to '${{ env.I18N_BRANCH }}'
47+
run: |
48+
sh -x
4949
50-
git merge '${{ github.event.repository.default_branch }}'
50+
git merge '${{ github.event.repository.default_branch }}'
5151
52-
- name: Set up Python
53-
uses: actions/setup-python@v2
54-
with:
55-
python-version: >-
56-
3.10
52+
- name: Set up Python
53+
uses: actions/setup-python@v2
54+
with:
55+
python-version: >-
56+
3.10
5757
58-
- name: Install Python tooling
59-
run: python -m pip install --upgrade nox virtualenv
58+
- name: Install Python tooling
59+
run: python -m pip install --upgrade nox virtualenv
6060

61-
- name: Generate a fresh POT file out of RST documents
62-
run: python -m nox -s translation
61+
- name: Generate a fresh POT file out of RST documents
62+
run: python -m nox -s translation
6363

64-
- name: Commit the POT file to Git
65-
run: |
66-
git_hash=$(git rev-parse --short "${GITHUB_SHA}")
67-
git add --force locales/messages.pot
68-
git commit \
69-
-m "Update messages.pot as of version ${git_hash}" \
70-
locales/messages.pot
64+
- name: Commit the POT file to Git
65+
run: |
66+
git_hash=$(git rev-parse --short "${GITHUB_SHA}")
67+
git add --force locales/messages.pot
68+
git commit \
69+
-m "Update messages.pot as of version ${git_hash}" \
70+
locales/messages.pot
7171
72-
- name: >-
73-
Push the updated POT file back to '${{ env.I18N_BRANCH }}'
74-
branch on GitHub
75-
if: always()
76-
run: |
77-
git push --atomic origin 'HEAD:${{ env.I18N_BRANCH }}'
72+
- name: >-
73+
Push the updated POT file back to '${{ env.I18N_BRANCH }}'
74+
branch on GitHub
75+
if: always()
76+
run: |
77+
git push --atomic origin 'HEAD:${{ env.I18N_BRANCH }}'

0 commit comments

Comments
 (0)