File tree Expand file tree Collapse file tree 3 files changed +22
-29
lines changed Expand file tree Collapse file tree 3 files changed +22
-29
lines changed Original file line number Diff line number Diff line change 6
6
- dev
7
7
jobs :
8
8
genlocale :
9
- name : genlocale
10
9
runs-on : ubuntu-latest
11
10
steps :
12
- - name : Check out
13
- uses : actions/checkout@master
11
+ - uses : actions/checkout@master
14
12
15
13
- name : Run locale generation
16
14
run : |
@@ -20,15 +18,22 @@ jobs:
20
18
21
19
- name : Commit back
22
20
if : ${{ !github.head_ref }}
21
+ id : commitback
23
22
continue-on-error : true
24
23
run : |
25
24
git config --local user.name 'github-actions[bot]'
26
25
git config --local user.email 'github-actions[bot]@users.noreply.github.com'
27
26
git add --all
28
- git commit -m "🎨 同步 locale"
27
+ git commit -m "chore(i18n): sync locale"
29
28
30
29
- name : Create Pull Request
31
- if : ${{ !github.head_ref }}
30
+ if : steps.commitback.outcome == 'success'
32
31
continue-on-error : true
33
- uses : peter-evans/create-pull-request@v4
34
-
32
+ uses : peter-evans/create-pull-request@v5
33
+ with :
34
+ delete-branch : true
35
+ body : " Automatically sync i18n translation jsons"
36
+ title : " chore(i18n): sync locale"
37
+ commit-message : " chore(i18n): sync locale"
38
+ branch : genlocale-${{github.ref_name}}
39
+ branch-suffix : short-commit-hash
Original file line number Diff line number Diff line change 6
6
7
7
jobs :
8
8
# This workflow closes invalid PR
9
- close-pr :
10
- name : closepr
9
+ close_pr :
11
10
# The type of runner that the job will run on
12
11
runs-on : ubuntu-latest
13
12
permissions : write-all
@@ -22,20 +21,14 @@ jobs:
22
21
comment : " Invalid PR to non-dev branch ${{ github.event.pull_request.base.ref }}."
23
22
24
23
pull_format :
25
- runs-on : ${{ matrix.os }}
24
+ runs-on : ubuntu-latest
26
25
permissions :
27
26
contents : write
28
27
29
- strategy :
30
- matrix :
31
- python-version : ["3.10"]
32
- os : [ubuntu-latest]
33
- fail-fast : false
34
-
35
28
continue-on-error : true
36
29
37
30
steps :
38
- - name : checkout
31
+ - name : Checkout
39
32
continue-on-error : true
40
33
uses : actions/checkout@v3
41
34
with :
Original file line number Diff line number Diff line change @@ -12,14 +12,7 @@ permissions:
12
12
13
13
jobs :
14
14
push_format :
15
- runs-on : ${{ matrix.os }}
16
-
17
- strategy :
18
- matrix :
19
- python-version : ["3.10"]
20
- os : [ubuntu-latest]
21
- fail-fast : false
22
-
15
+ runs-on : ubuntu-latest
23
16
steps :
24
17
- uses : actions/checkout@v3
25
18
with :
@@ -44,14 +37,16 @@ jobs:
44
37
git config --local user.email "github-actions[bot]@users.noreply.github.com"
45
38
git config --local user.name "github-actions[bot]"
46
39
git add --all
47
- git commit -m "Format code "
40
+ git commit -m "chore(format): run black "
48
41
49
42
- name : Create Pull Request
50
43
if : steps.commitback.outcome == 'success'
51
44
continue-on-error : true
52
45
uses : peter-evans/create-pull-request@v5
53
46
with :
54
47
delete-branch : true
55
- body : Apply Code Formatter Change
56
- title : Apply Code Formatter Change
57
- commit-message : Automatic code format
48
+ body : " Automatically apply code formatter change"
49
+ title : " chore(format): run black"
50
+ commit-message : " chore(format): run black"
51
+ branch : formatter-${{github.ref_name}}
52
+ branch-suffix : short-commit-hash
You can’t perform that action at this time.
0 commit comments