Skip to content

Commit 83feaa7

Browse files
committed
feat: optimize actions
1 parent 937d748 commit 83feaa7

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

.github/workflows/genlocale.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
git config --local user.name 'github-actions[bot]'
2525
git config --local user.email 'github-actions[bot]@users.noreply.github.com'
2626
git add --all
27-
git commit -m "chore(i18n): sync locale"
27+
git commit -m "chore(i18n): sync locale on ${{github.ref_name}}"
2828
2929
- name: Create Pull Request
3030
if: steps.commitback.outcome == 'success'
@@ -33,7 +33,7 @@ jobs:
3333
with:
3434
delete-branch: true
3535
body: "Automatically sync i18n translation jsons"
36-
title: "chore(i18n): sync locale"
37-
commit-message: "chore(i18n): sync locale"
36+
title: "chore(i18n): sync locale on ${{github.ref_name}}"
37+
commit-message: "chore(i18n): sync locale on ${{github.ref_name}}"
3838
branch: genlocale-${{github.ref_name}}
3939
branch-suffix: short-commit-hash

.github/workflows/pull_format.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
uses: superbrothers/close-pull-request@v3
1919
with:
2020
# Optional. Post a issue comment just before closing a pull request.
21-
comment: "Invalid PR to non-dev branch ${{ github.event.pull_request.base.ref }}."
21+
comment: "Invalid PR to `non-dev` branch `${{ github.event.pull_request.base.ref }}`."
2222

2323
pull_format:
2424
runs-on: ubuntu-latest

.github/workflows/push_format.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
git config --local user.email "github-actions[bot]@users.noreply.github.com"
3939
git config --local user.name "github-actions[bot]"
4040
git add --all
41-
git commit -m "chore(format): run black"
41+
git commit -m "chore(format): run black on ${{github.ref_name}}"
4242
4343
- name: Create Pull Request
4444
if: steps.commitback.outcome == 'success'
@@ -47,7 +47,7 @@ jobs:
4747
with:
4848
delete-branch: true
4949
body: "Automatically apply code formatter change"
50-
title: "chore(format): run black"
51-
commit-message: "chore(format): run black"
50+
title: "chore(format): run black on ${{github.ref_name}}"
51+
commit-message: "chore(format): run black on ${{github.ref_name}}"
5252
branch: formatter-${{github.ref_name}}
5353
branch-suffix: short-commit-hash

0 commit comments

Comments
 (0)