mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
Updating the specflow workflow to run on the selected branch when triggered manually, take 2 [skip ci]
This commit is contained in:
@@ -7,17 +7,32 @@ on:
|
|||||||
- cron: '0 0 * * *' # Every day at midnight.
|
- cron: '0 0 * * *' # Every day at midnight.
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
define-matrix:
|
||||||
|
name: Define Strategy Matrix
|
||||||
|
runs-on: ubuntu-24.04
|
||||||
|
outputs:
|
||||||
|
branches: ${{ steps.branches.outputs.branches }}
|
||||||
|
steps:
|
||||||
|
- name: Define Branches
|
||||||
|
id: branches
|
||||||
|
run: |
|
||||||
|
if [ "${{ github.event_name }}" = "schedule" ]; then
|
||||||
|
echo 'branches=["1.10.x", "dev"]' >> "$GITHUB_OUTPUT"
|
||||||
|
else
|
||||||
|
echo 'branches=["${{ github.ref_name }}"]' >> "$GITHUB_OUTPUT"
|
||||||
|
fi
|
||||||
|
|
||||||
compile:
|
compile:
|
||||||
name: SpecFlow tests
|
name: SpecFlow tests
|
||||||
defaults:
|
needs: define-matrix
|
||||||
run:
|
|
||||||
shell: cmd
|
|
||||||
runs-on: windows-2025
|
runs-on: windows-2025
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
branch: ${{ github.event_name == 'schedule' && fromJson('["dev","1.10.x"]') || fromJson('["${{ github.ref_name }}"]') }}
|
branch: ${{ fromJSON(needs.define-matrix.outputs.branches) }}
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: cmd
|
||||||
steps:
|
steps:
|
||||||
- name: Clone repository
|
- name: Clone repository
|
||||||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
||||||
|
|||||||
Reference in New Issue
Block a user