File tree Expand file tree Collapse file tree 1 file changed +60
-0
lines changed Expand file tree Collapse file tree 1 file changed +60
-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
+ permissions :
16
+ contents : write
17
+ pull-requests : write
18
+ steps :
19
+ -
20
+ name : Checkout
21
+ uses : actions/checkout@v4
22
+ -
23
+ name : Setup PHP with Composer
24
+ uses : shivammathur/setup-php@v2
25
+ with :
26
+ tools : composer
27
+ -
28
+ name : Get Composer Cache Directory
29
+ id : composer-cache
30
+ working-directory : api
31
+ run : echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
32
+ -
33
+ name : Cache Dependencies
34
+ uses : actions/cache@v4
35
+ with :
36
+ path : ${{ steps.composer-cache.outputs.dir }}
37
+ key : ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
38
+ restore-keys : ${{ runner.os }}-composer-
39
+ -
40
+ name : Install Dependencies
41
+ working-directory : api
42
+ run : composer install --prefer-dist
43
+ -
44
+ name : Update API Platform Dependencies
45
+ working-directory : api
46
+ run : composer update "api-platform/*"
47
+ -
48
+ name : Show git diff
49
+ working-directory : api
50
+ run : git diff
51
+ -
52
+ name : Create Pull Request
53
+ uses : peter-evans/create-pull-request@v7
54
+ with :
55
+ branch : release/api-platform
56
+ commit-message : " chore: upgrade API Platform"
57
+ title : Upgrade API Platform
58
+ assignees : vincentchalamon
59
+ add-paths : |
60
+ api/composer.*
You can’t perform that action at this time.
0 commit comments