Fix workflow permission issue when running in merge branch (#7417)

Fix the labeler workflow permission issue when merging from fork repo.
It impacts the labeler workflow to support auto-merge for package versions upgrade on 202012 branch. The current workaround is to add the label "automerge" on the PR sent by mssonicbld, then the automerge workflow will merge the PR.
This commit is contained in:
xumia 2021-04-25 10:02:58 +08:00 committed by Danny Allen
parent 1b05982727
commit bdb23a0d94

View File

@ -7,7 +7,7 @@
name: Labeler name: Labeler
on: on:
pull_request: pull_request_target:
types: types:
- opened - opened
- reopened - reopened