From 23fea2dae966e4955e7e5902e8f3c47de2bd62f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BA=90=E6=96=87=E9=9B=A8?= <41315874+fumiama@users.noreply.github.com> Date: Wed, 20 Sep 2023 20:33:19 +0900 Subject: [PATCH] fix: workflow --- .github/workflows/pull.yml | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/.github/workflows/pull.yml b/.github/workflows/pull.yml index befb665d..8b3a974d 100644 --- a/.github/workflows/pull.yml +++ b/.github/workflows/pull.yml @@ -9,20 +9,9 @@ jobs: # Steps represent a sequence of tasks that will be executed as part of the job steps: - # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - uses: actions/checkout@v2 - - # Runs a single command using the runners shell - - name: Get PR commit message - id: pr - run: | - commitmessage=$(git log --format=%B -n 1) - echo "message=$commitmessage" > $GITHUB_OUTPUT - echo "set message=$commitmessage" - # Runs a set of commands using the runners shell - name: Close PR if commit message is "Update main.go" - if: steps.pr.outputs.message == 'Update main.go' + if: github.event.pull_request.title == 'Update main.go' run: | echo "Closing this PR because commit message is 'Update main.go'" gh pr close ${{ github.event.pull_request.number }} --delete-branch