Skip to content

Commit

Permalink
allow inputs on dispatch
Browse files Browse the repository at this point in the history
  • Loading branch information
phryneas committed Dec 18, 2024
1 parent 3868f31 commit 110596c
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/scheduled-test-canary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,23 @@ on:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
inputs:
branches:
description: "Branch to test"
required: true
default: '["main", "release-3.13", "release-4.0"]'
tags:
description: "React and React-DOM tag"
required: true
default: '["canary", "experimental"]'
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
tag:
- canary
- experimental
branch:
- main
- release-3.13
- release-4.0
tag: ${{ fromJson(github.event_name == 'workflow_dispatch' && inputs.tags || '["canary", "experimental"]') }}
branch: ${{ fromJson(github.event_name == 'workflow_dispatch' && inputs.branches || '["main", "release-3.13", "release-4.0"]') }}
steps:
- uses: actions/checkout@v4
with:
Expand Down

0 comments on commit 110596c

Please sign in to comment.