diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index 3316a818..d9e55760 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -9,7 +9,8 @@ on: branches: [main, master] pull_request: branches: [main, master] - types: [opened, closed, synchronize] + # https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request + types: [opened, closed, synchronize, review_requested] jobs: format: diff --git a/action.yml b/action.yml index 352c03e2..95fff10f 100644 --- a/action.yml +++ b/action.yml @@ -153,7 +153,7 @@ runs: # PR Summary ------------------------------------------------------------------------------------------------------- - name: PR Summary - if: inputs.summary == 'true' && (github.event_name == 'pull_request' || github.event_name == 'pull_request_target') && (github.event.action == 'opened' || github.event.action == 'closed') + if: inputs.summary == 'true' && (github.event_name == 'pull_request' || github.event_name == 'pull_request_target') && github.event.action != 'synchronize' env: REPO_NAME: ${{ github.repository }} PR_NUMBER: ${{ github.event.pull_request.number }}