|
7 | 7 | - main |
8 | 8 | - \d+.\d+ |
9 | 9 | 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 |
12 | 24 | schedule: |
13 | | - - cron: 0 2 * * 0 |
| 25 | + - cron: 0 2 * * * |
14 | 26 |
|
15 | 27 | concurrency: |
16 | 28 | group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} |
@@ -53,10 +65,10 @@ jobs: |
53 | 65 | name: Start services |
54 | 66 | run: docker compose up --wait --no-build |
55 | 67 | - |
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') }} |
58 | 70 | run: | |
59 | | - docker compose exec php composer config minimum-stability dev |
| 71 | + docker compose exec php composer config minimum-stability ${{ inputs.minimum-stability }} |
60 | 72 | docker compose exec php composer update "api-platform/*" |
61 | 73 | - |
62 | 74 | name: Check HTTP reachability |
@@ -155,10 +167,10 @@ jobs: |
155 | 167 | name: Start Services |
156 | 168 | run: docker compose up --wait --no-build |
157 | 169 | - |
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') }} |
160 | 172 | run: | |
161 | | - docker compose exec php composer config minimum-stability dev |
| 173 | + docker compose exec php composer config minimum-stability ${{ inputs.minimum-stability }} |
162 | 174 | docker compose exec php composer update "api-platform/*" |
163 | 175 | - |
164 | 176 | name: Load Fixtures |
|
0 commit comments