File tree Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Original file line number Diff line number Diff line change 1+ # yaml-language-server: $schema=https://github.com/SchemaStore/schemastore/blob/master/src/schemas/json/github-workflow.json
2+ name : Upgrade
3+
4+ on :
5+ push :
6+ branches :
7+ - chore/release-workflow
8+ workflow_dispatch : ~
9+
10+ jobs :
11+ upgrade :
12+ name : Upgrade
13+ if : ${{ github.repository == 'api-platform/demo' }}
14+ runs-on : ubuntu-latest
15+ steps :
16+ -
17+ name : Checkout
18+ uses : actions/checkout@v4
19+ -
20+ name : Setup PHP with Composer
21+ uses : shivammathur/setup-php@v2
22+ with :
23+ tools : composer
24+ -
25+ name : Get Composer Cache Directory
26+ id : composer-cache
27+ working-directory : api
28+ run : echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
29+ -
30+ name : Cache Dependencies
31+ uses : actions/cache@v4
32+ working-directory : api
33+ with :
34+ path : ${{ steps.composer-cache.outputs.dir }}
35+ key : ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
36+ restore-keys : ${{ runner.os }}-composer-
37+ -
38+ name : Install Dependencies
39+ working-directory : api
40+ run : composer install --prefer-dist
41+ -
42+ name : Update API Platform Dependencies
43+ working-directory : api
44+ run : composer update "api-platform/*"
You can’t perform that action at this time.
0 commit comments