From 40bec59b797348e601d9c30b19abafdb3a53349f Mon Sep 17 00:00:00 2001 From: Mogyuchi Date: Mon, 12 Feb 2024 23:55:46 +0900 Subject: [PATCH] ci: fix commit-author of find-comment --- .github/workflows/release-please.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index 4d3fc41..a5d19c1 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -1,3 +1,6 @@ +env: + RELEASE_PLEASE_AUTHOR: mazi-release[bot] + on: push: branches: main @@ -29,7 +32,7 @@ jobs: manifest-file: .github/files/release-please/.release-please-manifest.json skip-github-pull-request: ${{ startsWith(github.event.head_commit.message, 'release:') && - github.event.head_commit.author.name == 'mazi-release[bot]' }} + github.event.head_commit.author.name == env.RELEASE_PLEASE_AUTHOR }} docker-publish: needs: release-please @@ -77,7 +80,7 @@ jobs: id: fc with: issue-number: ${{ needs.get-pr-number.outputs.pr_number }} - comment-author: "github-actions[bot]" + comment-author: ${{ env.RELEASE_PLEASE_AUTHOR }} body-includes: ":robot: Release is at ${{ github.event.repository.html_url }}/releases/tag/untagged-" - if: steps.fc.conclusion == 'success' uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043 # v4.0.0