From 544b913a69386a60ccab643fe6b722bc2aef8124 Mon Sep 17 00:00:00 2001 From: sushichan044 Date: Tue, 22 Oct 2024 01:35:31 +0900 Subject: [PATCH] fix: event_name --- .github/workflows/test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 10d8607..c246662 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -35,7 +35,7 @@ jobs: steps: - name: Get PR information (issue_comment) - if: github.event_name == 'event_name' + if: github.event_name == 'issue_comment' id: pr-request uses: octokit/request-action@dad4362715b7fb2ddedf9772c8670824af564f0d # v2.4.0 with: @@ -44,7 +44,7 @@ jobs: GITHUB_TOKEN: ${{ github.token }} - name: Exit if invalid PR (issue_comment) - if: github.event_name == 'event_name' + if: github.event_name == 'issue_comment' run: | if [ "${{ fromJson(steps.pr-request.outputs.data).base.ref }}" != 'main' ]; then echo "::error::PR base branch is not main."