From 9e664af44dd808887e6de26f5129f3d0f363afd4 Mon Sep 17 00:00:00 2001 From: meriy100 Date: Thu, 11 Jan 2024 16:15:10 +0900 Subject: [PATCH] test --- .github/actions/release-by-release-pr/action.yml | 5 +++-- .github/workflows/check-pr-title.yml | 3 +++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/actions/release-by-release-pr/action.yml b/.github/actions/release-by-release-pr/action.yml index e151a12..409b9d4 100644 --- a/.github/actions/release-by-release-pr/action.yml +++ b/.github/actions/release-by-release-pr/action.yml @@ -9,8 +9,9 @@ runs: steps: - name: validate event type run: | - if ${{ github.event.pull_request.merged && startsWith(github.head_ref, 'release/') }}; then - : + if ${{ startsWith(github.head_ref, 'fix-') }}; then + echo "ok"; + exit 1 else echo "This action is only available in the merge event of a Release PullRequest."; exit 1; diff --git a/.github/workflows/check-pr-title.yml b/.github/workflows/check-pr-title.yml index 1a461b2..66f9a57 100644 --- a/.github/workflows/check-pr-title.yml +++ b/.github/workflows/check-pr-title.yml @@ -17,3 +17,6 @@ jobs: - uses: ./.github/actions/validate-pr-title env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - uses: ./.github/actions/release-by-release-pr + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}