Fix condition in backport.yml to also trigger on schedule (#79951)
authorAlexander Köplinger <alex.koeplinger@outlook.com>
Mon, 26 Dec 2022 12:15:55 +0000 (13:15 +0100)
committerGitHub <noreply@github.com>
Mon, 26 Dec 2022 12:15:55 +0000 (13:15 +0100)
.github/workflows/backport.yml

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