1
0
mirror of synced 2024-11-30 18:24:32 +01:00

feat: optimize actions

This commit is contained in:
源文雨 2023-09-23 13:57:39 +09:00
parent 937d748c67
commit 83feaa7300
3 changed files with 7 additions and 7 deletions

View File

@ -24,7 +24,7 @@ jobs:
git config --local user.name 'github-actions[bot]'
git config --local user.email 'github-actions[bot]@users.noreply.github.com'
git add --all
git commit -m "chore(i18n): sync locale"
git commit -m "chore(i18n): sync locale on ${{github.ref_name}}"
- name: Create Pull Request
if: steps.commitback.outcome == 'success'
@ -33,7 +33,7 @@ jobs:
with:
delete-branch: true
body: "Automatically sync i18n translation jsons"
title: "chore(i18n): sync locale"
commit-message: "chore(i18n): sync locale"
title: "chore(i18n): sync locale on ${{github.ref_name}}"
commit-message: "chore(i18n): sync locale on ${{github.ref_name}}"
branch: genlocale-${{github.ref_name}}
branch-suffix: short-commit-hash

View File

@ -18,7 +18,7 @@ jobs:
uses: superbrothers/close-pull-request@v3
with:
# Optional. Post a issue comment just before closing a pull request.
comment: "Invalid PR to non-dev branch ${{ github.event.pull_request.base.ref }}."
comment: "Invalid PR to `non-dev` branch `${{ github.event.pull_request.base.ref }}`."
pull_format:
runs-on: ubuntu-latest

View File

@ -38,7 +38,7 @@ jobs:
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add --all
git commit -m "chore(format): run black"
git commit -m "chore(format): run black on ${{github.ref_name}}"
- name: Create Pull Request
if: steps.commitback.outcome == 'success'
@ -47,7 +47,7 @@ jobs:
with:
delete-branch: true
body: "Automatically apply code formatter change"
title: "chore(format): run black"
commit-message: "chore(format): run black"
title: "chore(format): run black on ${{github.ref_name}}"
commit-message: "chore(format): run black on ${{github.ref_name}}"
branch: formatter-${{github.ref_name}}
branch-suffix: short-commit-hash