Skip to content

Commit 269d1d5

Browse files
chore: run api-platform dev dependencies everyday at 2am (#473)
1 parent 2040ecc commit 269d1d5

File tree

1 file changed

+21
-9
lines changed

1 file changed

+21
-9
lines changed

.github/workflows/ci.yml

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,22 @@ on:
77
- main
88
- \d+.\d+
99
pull_request: ~
10-
workflow_dispatch: ~
11-
# Check api-platform packages with dev every sunday at 02:00
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
23+
# Check api-platform packages with dev every day at 02:00
1224
schedule:
13-
- cron: 0 2 * * 0
25+
- cron: 0 2 * * *
1426

1527
concurrency:
1628
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
@@ -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)