From 83feaa7300c5cdd58de1aa5d23784b04011b65da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BA=90=E6=96=87=E9=9B=A8?= <41315874+fumiama@users.noreply.github.com> Date: Sat, 23 Sep 2023 13:57:39 +0900 Subject: [PATCH] feat: optimize actions --- .github/workflows/genlocale.yml | 6 +++--- .github/workflows/pull_format.yml | 2 +- .github/workflows/push_format.yml | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/genlocale.yml b/.github/workflows/genlocale.yml index 081158e..bac9cc3 100644 --- a/.github/workflows/genlocale.yml +++ b/.github/workflows/genlocale.yml @@ -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 diff --git a/.github/workflows/pull_format.yml b/.github/workflows/pull_format.yml index e21dc2d..484a214 100644 --- a/.github/workflows/pull_format.yml +++ b/.github/workflows/pull_format.yml @@ -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 diff --git a/.github/workflows/push_format.yml b/.github/workflows/push_format.yml index 605b27d..81f8735 100644 --- a/.github/workflows/push_format.yml +++ b/.github/workflows/push_format.yml @@ -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