From 914a31b7bad777027438243b97c9332f2dae2839 Mon Sep 17 00:00:00 2001 From: Hiroto Funakoshi Date: Wed, 20 Sep 2023 18:16:34 +0900 Subject: [PATCH] fix github object specification (#111) Signed-off-by: hlts2 --- .github/workflows/_release-pr.yml | 2 +- .github/workflows/release.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/_release-pr.yml b/.github/workflows/_release-pr.yml index 28e4e2bf..609984d6 100644 --- a/.github/workflows/_release-pr.yml +++ b/.github/workflows/_release-pr.yml @@ -124,7 +124,7 @@ 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: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 817b2301..792379b2 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