Add condition to backport.yml (#79276)
authorAlexander Köplinger <alex.koeplinger@outlook.com>
Tue, 6 Dec 2022 14:20:35 +0000 (15:20 +0100)
committerGitHub <noreply@github.com>
Tue, 6 Dec 2022 14:20:35 +0000 (15:20 +0100)
.github/workflows/backport.yml

index ac4a8bd..fb4f7ec 100644 (file)
@@ -14,6 +14,7 @@ permissions:
 
 jobs:
   backport:
+    if: ${{ contains(github.event.comment.body, '/backport to') }}
     uses: dotnet/arcade/.github/workflows/backport-base.yml@main
     with:
       pr_description_template: |