File tree 1 file changed +47
-0
lines changed
1 file changed +47
-0
lines changed Original file line number Diff line number Diff line change
1
+ # https://help.github.com/en/categories/automating-your-workflow-with-github-actions
2
+
3
+ name : " Update PhpStorm stubs"
4
+ on :
5
+ workflow_dispatch :
6
+ schedule :
7
+ # * is a special character in YAML so you have to quote this string
8
+ - cron : ' 0 0 * * 2'
9
+
10
+ jobs :
11
+ update-phpstorm-stubs :
12
+ name : " Update PhpStorm stubs"
13
+ runs-on : " ubuntu-latest"
14
+ steps :
15
+ - name : " Checkout"
16
+ uses : " actions/checkout@v2"
17
+ with :
18
+ ref : ${{ github.head_ref }}
19
+ fetch-depth : ' 0'
20
+ token : ${{ secrets.PHPSTAN_BOT_TOKEN }}
21
+ - name : " Install PHP"
22
+ uses : " shivammathur/setup-php@v2"
23
+ with :
24
+ coverage : " none"
25
+ php-version : " 8.0"
26
+ - name : " Install dependencies"
27
+ run : " composer install --no-interaction --no-progress --no-suggest"
28
+ - name : " Checkout stubs"
29
+ uses : " actions/checkout@v2"
30
+ with :
31
+ path : " phpstorm-stubs"
32
+ repository : " jetbrains/phpstorm-stubs"
33
+ - name : " Update stubs"
34
+ run : " composer require jetbrains/phpstorm-stubs:dev-master#$(git -C phpstorm-stubs rev-parse HEAD)"
35
+ - name : " Remove stubs repo"
36
+ run : " rm -r phpstorm-stubs"
37
+ - name : " Create Pull Request"
38
+ id : create-pr
39
+ uses : peter-evans/create-pull-request@v3
40
+ with :
41
+ token : ${{ secrets.PHPSTAN_BOT_TOKEN }}
42
+ branch-suffix : random
43
+ delete-branch : true
44
+ title : " Update PhpStorm stubs"
45
+ body : " Update PhpStorm stubs"
46
+ committer :
" phpstan-bot <[email protected] >"
47
+ commit-message : " Update PhpStorm stubs"
You can’t perform that action at this time.
0 commit comments