13
13
14
14
steps :
15
15
- name : Checkout
16
- uses : actions/checkout@v2
16
+ uses : actions/checkout@v3
17
17
18
18
- name : Setup PHP, with composer and extensions
19
19
uses : shivammathur/setup-php@v2
22
22
coverage : none
23
23
24
24
- name : Cache composer dependencies
25
- uses : actions/cache@v2
25
+ uses : actions/cache@v3
26
26
with :
27
27
path : ~/.cache/composer
28
28
key : ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
44
44
runs-on : ubuntu-latest
45
45
steps :
46
46
- name : Checkout
47
- uses : actions/checkout@v2
47
+ uses : actions/checkout@v3
48
48
49
49
- name : Setup PHP, with composer and extensions
50
50
uses : shivammathur/setup-php@v2
55
55
tools : cs2pr
56
56
57
57
- name : Cache composer dependencies
58
- uses : actions/cache@v2
58
+ uses : actions/cache@v3
59
59
with :
60
60
path : ~/.cache/composer
61
61
key : ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
@@ -71,20 +71,15 @@ jobs:
71
71
runs-on : ubuntu-latest
72
72
if : github.event_name == 'push' && contains(github.ref, 'refs/tags/')
73
73
steps :
74
- - uses : actions/checkout@v2
74
+ - uses : actions/checkout@v3
75
75
with :
76
76
ref : ${{ github.ref }} # Otherwise our annotated tag is not fetched and we cannot get correct version
77
77
78
- # Create release
79
78
- name : Get release info
80
- id : release-info
81
- run : |
82
- echo "::set-output name=subject::$(git tag --format '%(contents:subject)' --points-at)"
83
- git tag --format '%(contents:body)' --points-at > release-body.txt
84
- - uses : actions/create-release@v1
79
+ run : git tag --format '%(contents:body)' --points-at > release-body.txt
80
+
81
+ - uses : ncipollo/release-action@v1
85
82
env :
86
83
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
87
84
with :
88
- tag_name : ${{ github.ref }}
89
- release_name : ${{ steps.release-info.outputs.subject }}
90
- body_path : release-body.txt
85
+ bodyFile : release-body.txt
0 commit comments