From 33ebe425ac81bbfdb629199627c820d5e717911d Mon Sep 17 00:00:00 2001 From: hlts2 Date: Wed, 20 Sep 2023 18:19:44 +0900 Subject: [PATCH] bugfix github object error for release pr Signed-off-by: hlts2 --- .github/workflows/_release-pr.yml | 3 ++- .github/workflows/release.yml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/_release-pr.yml b/.github/workflows/_release-pr.yml index 4ad038e3fbd..3e3ac9be70d 100644 --- a/.github/workflows/_release-pr.yml +++ b/.github/workflows/_release-pr.yml @@ -124,8 +124,9 @@ jobs: -H "Content-Type:application/json" \ -H "Authorization: token ${GITHUB_TOKEN}" \ --request POST \ - --data "{\"title\": \"Release ${RELEASE_TAG}\", \"head\": \"${PREPARE_RELEASE_BRANCH_NAME}\", \"base\": \"${RELEASE_BRANCH_NAME}\", \"body\": \"Release PR for ${RELEASE_TAG}.\", \"maintainer_can_modify\": true}" \ + --data "{\"title\": \":bookmark: :robot: Release ${RELEASE_TAG}\", \"head\": \"${PREPARE_RELEASE_BRANCH_NAME}\", \"base\": \"${RELEASE_BRANCH_NAME}\", \"body\": \"Release PR for ${RELEASE_TAG}.\", \"maintainer_can_modify\": true}" \ $API_URL + env: GITHUB_USER: ${{ secrets.DISPATCH_USER }} GITHUB_TOKEN: ${{ secrets.DISPATCH_TOKEN }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3747222000c..b5ac7a34505 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -25,7 +25,7 @@ on: jobs: dump-contexts-to-log: if: >- - ${{ github.event.pull_request.merged == true && startsWith(github.event.head_commit.message, ':bookmark: :robot: Release') }} + ${{ github.event.pull_request.merged == true && startsWith(github.event.pull_request.title, ':bookmark: :robot: Release') }} runs-on: ubuntu-latest steps: - uses: actions/checkout@v3