Fixing that the specflow workflow should run on the selected branch when triggered manually

This commit is contained in:
Benedek Farkas
2025-09-19 10:10:12 +02:00
parent 4a0dc97f5f
commit c683103578

View File

@@ -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: