Skip to content

Commit 36abba8

Browse files
chore: allow to run CI manually
1 parent 19d1c3e commit 36abba8

File tree

1 file changed

+19
-7
lines changed

1 file changed

+19
-7
lines changed

.github/workflows/ci.yml

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,19 @@ on:
77
- main
88
- \d+.\d+
99
pull_request: ~
10-
workflow_dispatch: ~
10+
workflow_dispatch:
11+
inputs:
12+
minimum-stability:
13+
description: 'Minimum stability'
14+
required: false
15+
default: 'stable'
16+
type: choice
17+
options:
18+
- dev
19+
- alpha
20+
- beta
21+
- RC
22+
- stable
1123
# Check api-platform packages with dev every day at 02:00
1224
schedule:
1325
- cron: 0 2 * * *
@@ -53,10 +65,10 @@ jobs:
5365
name: Start services
5466
run: docker compose up --wait --no-build
5567
-
56-
name: Update API Platform to latest
57-
if: ${{ github.event_name == 'schedule' }}
68+
name: Update API Platform
69+
if: ${{ github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && inputs.minimum-stability != 'stable') }}
5870
run: |
59-
docker compose exec php composer config minimum-stability dev
71+
docker compose exec php composer config minimum-stability ${{ inputs.minimum-stability }}
6072
docker compose exec php composer update "api-platform/*"
6173
-
6274
name: Check HTTP reachability
@@ -155,10 +167,10 @@ jobs:
155167
name: Start Services
156168
run: docker compose up --wait --no-build
157169
-
158-
name: Update API Platform to latest
159-
if: ${{ github.event_name == 'schedule' }}
170+
name: Update API Platform
171+
if: ${{ github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && inputs.minimum-stability != 'stable') }}
160172
run: |
161-
docker compose exec php composer config minimum-stability dev
173+
docker compose exec php composer config minimum-stability ${{ inputs.minimum-stability }}
162174
docker compose exec php composer update "api-platform/*"
163175
-
164176
name: Load Fixtures

0 commit comments

Comments
 (0)