ci: use pull_request_target for conflict resolver label trigger (#26762)
* fix: use pull_request_target for conflict resolver label trigger Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * fix: update if condition to check for pull_request_target event name Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --------- Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
co-authored by
Devin AI
parent
a4d4626319
commit
77184226e5
@@ -1,7 +1,7 @@
|
||||
name: Devin PR Conflict Resolver
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
pull_request_target:
|
||||
types: [labeled]
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
@@ -20,7 +20,7 @@ jobs:
|
||||
runs-on: blacksmith-2vcpu-ubuntu-2404
|
||||
# Only run when devin-conflict-resolution label is added, or on manual dispatch
|
||||
if: |
|
||||
(github.event_name == 'pull_request' && github.event.label.name == 'devin-conflict-resolution') ||
|
||||
(github.event_name == 'pull_request_target' && github.event.label.name == 'devin-conflict-resolution') ||
|
||||
github.event_name == 'workflow_dispatch'
|
||||
steps:
|
||||
- name: Get PR details
|
||||
|
||||
Reference in New Issue
Block a user