Skip to content

Commit

Permalink
fix: event_name
Browse files Browse the repository at this point in the history
  • Loading branch information
sushichan044 committed Oct 21, 2024
1 parent d7f4728 commit 544b913
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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."
Expand Down

0 comments on commit 544b913

Please sign in to comment.