From c683103578d16b9f2f945ce79b88bd23503c3b56 Mon Sep 17 00:00:00 2001 From: Benedek Farkas Date: Fri, 19 Sep 2025 10:10:12 +0200 Subject: [PATCH] Fixing that the specflow workflow should run on the selected branch when triggered manually --- .github/workflows/specflow.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/specflow.yml b/.github/workflows/specflow.yml index f2e2e901d..40aabb817 100644 --- a/.github/workflows/specflow.yml +++ b/.github/workflows/specflow.yml @@ -4,7 +4,7 @@ name: SpecFlow tests on: workflow_dispatch: schedule: - - cron: '0 0 * * *' # Every day at midnight. + - cron: '0 0 * * *' # Every day at midnight. jobs: compile: @@ -15,7 +15,7 @@ jobs: runs-on: windows-latest strategy: matrix: - branch: [dev, 1.10.x] + branch: ${{ github.event_name == 'schedule' && fromJson('["dev","1.10.x"]') || fromJson('["${{ github.ref_name }}"]') }} fail-fast: false steps: