workflow delete merged PR branch only run on current repo

This commit is contained in:
Cuong-Tran 2024-08-24 22:21:14 +07:00
parent 94acbb08d7
commit 8781c0bc89
No known key found for this signature in database
GPG key ID: 733AA7624B9315C2

View file

@ -7,7 +7,7 @@ on:
jobs:
delete_merged_branch:
runs-on: ubuntu-latest
if: github.event.pull_request.merged == true
if: github.event.pull_request.merged == true && github.repository == github.event.pull_request.head.repo.full_name
steps:
- name: Checkout repository
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4