File tree Expand file tree Collapse file tree 1 file changed +17
-5
lines changed Expand file tree Collapse file tree 1 file changed +17
-5
lines changed Original file line number Diff line number Diff line change 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 * * *
5466 run : docker compose up --wait --no-build
5567 -
5668 name : Update API Platform to latest
57- if : ${{ github.event_name == 'schedule' }}
69+ if : ${{ github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && inputs.minimum-stability != '') }}
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
@@ -156,9 +168,9 @@ jobs:
156168 run : docker compose up --wait --no-build
157169 -
158170 name : Update API Platform to latest
159- if : ${{ github.event_name == 'schedule' }}
171+ if : ${{ github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && inputs.minimum-stability != '') }}
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
You can’t perform that action at this time.
0 commit comments