workflow delete merged PR branch only run on current repo
This commit is contained in:
parent
94acbb08d7
commit
8781c0bc89
1 changed files with 1 additions and 1 deletions
2
.github/workflows/delete_merged_branch.yml
vendored
2
.github/workflows/delete_merged_branch.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue