2020 with :
2121 ref : ${{ github.head_ref }}
2222 fetch-depth : ' 0'
23+ token : ${{ secrets.PHPSTAN_BOT_TOKEN }}
2324 - name : " Install PHP"
2425 uses : " shivammathur/setup-php@v2"
2526 with :
@@ -36,30 +37,22 @@ jobs:
3637 ref : " PHP-8.0"
3738 - name : " Extract stubs"
3839 run : " ./extractor/extract.php"
40+ - name : ' Get previous tag'
41+ id : previous_tag
42+ uses : " WyriHaximus/github-action-get-previous-tag@v1"
43+ with :
44+ fallback : 0.1.0
45+ - name : ' Get next minor version'
46+ id : semvers
47+ uses : " WyriHaximus/github-action-next-semvers@v1"
48+ with :
49+ version : ${{ steps.previous_tag.outputs.tag }}
3950 - name : " Commit changes"
4051 uses : " stefanzweifel/git-auto-commit-action@v4"
4152 id : " commit"
4253 with :
4354 commit_message : " Update stubs"
44- commit_user_name : phpstan
45- commit_user_email :
[email protected] 46- commit_author :
PHPStan Bot <[email protected] > 47- - name : " Tag new version"
48- if : steps.commit.outputs.changes_detected == 'true'
49- id : " tag"
50- uses :
" anothrNick/[email protected] " 51- env :
52- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
53- WITH_V : false
54- RELEASE_BRANCHES : main
55- DEFAULT_BUMP : patch
56- - name : " Release new version"
57- if : steps.commit.outputs.changes_detected == 'true'
58- uses : actions/create-release@v1
59- env :
60- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
61- with :
62- tag_name : ${{ steps.tag.outputs.new_tag }}
63- release_name : ${{ steps.tag.outputs.new_tag }}
64- commitish : main
65- body : " Update stubs"
55+ commit_user_name : " phpstan-bot"
56+ commit_user_email :
" [email protected] " 57+ commit_author :
" phpstan-bot <[email protected] >" 58+ tagging_message : ${{ steps.semvers.outputs.patch }}
0 commit comments