Skip to content

Commit

Permalink
Change to on approve
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinEyo1 committed Mar 25, 2024
1 parent 567b6d8 commit f0ca80b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/pr-merge.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
name: PR Merge
name: Pull Request Review Action
on:
pull_request:
pull_request_review:
types:
- closed
- submitted

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
check-pr-label:
if: ${{ github.event.pull_request.merged }}
if: ${{ github.event.review.state == 'approved' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -43,7 +43,7 @@ jobs:
fi
env:
TEXT_BODY: ${{ github.event.pull_request.body }}
MERGE_AUTHOR: ${{ github.event.pull_request.merged_by.login }}
MERGE_AUTHOR: ${{ github.event.sender.login }}
- name: Assign label based on version impact
uses: actions/github-script@v7
with:
Expand Down

0 comments on commit f0ca80b

Please sign in to comment.