12
12
13
13
steps :
14
14
- name : Checkout
15
- uses : actions/checkout@v2
15
+ uses : actions/checkout@v3
16
16
17
17
- name : Setup PHP, with composer and extensions
18
18
uses : shivammathur/setup-php@v2
21
21
coverage : none
22
22
23
23
- name : Cache composer dependencies
24
- uses : actions/cache@v2
24
+ uses : actions/cache@v3
25
25
with :
26
26
path : ~/.cache/composer
27
27
key : ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
43
43
runs-on : ubuntu-latest
44
44
steps :
45
45
- name : Checkout
46
- uses : actions/checkout@v2
46
+ uses : actions/checkout@v3
47
47
48
48
- name : Setup PHP, with composer and extensions
49
49
uses : shivammathur/setup-php@v2
53
53
tools : cs2pr
54
54
55
55
- name : Cache composer dependencies
56
- uses : actions/cache@v2
56
+ uses : actions/cache@v3
57
57
with :
58
58
path : ~/.cache/composer
59
59
key : ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
69
69
runs-on : ubuntu-latest
70
70
steps :
71
71
- name : Checkout
72
- uses : actions/checkout@v2
72
+ uses : actions/checkout@v3
73
73
74
74
- name : Setup PHP, with composer and extensions
75
75
uses : shivammathur/setup-php@v2
78
78
coverage : none
79
79
80
80
- name : Cache composer dependencies
81
- uses : actions/cache@v2
81
+ uses : actions/cache@v3
82
82
with :
83
83
path : ~/.cache/composer
84
84
key : ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
94
94
runs-on : ubuntu-latest
95
95
steps :
96
96
- name : Checkout
97
- uses : actions/checkout@v2
97
+ uses : actions/checkout@v3
98
98
with :
99
99
fetch-depth : 2
100
100
@@ -105,7 +105,7 @@ jobs:
105
105
coverage : pcov
106
106
107
107
- name : Cache composer dependencies
108
- uses : actions/cache@v2
108
+ uses : actions/cache@v3
109
109
with :
110
110
path : ~/.cache/composer
111
111
key : ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
@@ -126,20 +126,15 @@ jobs:
126
126
runs-on : ubuntu-latest
127
127
if : github.event_name == 'push' && contains(github.ref, 'refs/tags/')
128
128
steps :
129
- - uses : actions/checkout@v2
129
+ - uses : actions/checkout@v3
130
130
with :
131
131
ref : ${{ github.ref }} # Otherwise our annotated tag is not fetched and we cannot get correct version
132
132
133
- # Create release
134
133
- name : Get release info
135
- id : release-info
136
- run : |
137
- echo "::set-output name=subject::$(git tag --format '%(contents:subject)' --points-at)"
138
- git tag --format '%(contents:body)' --points-at > release-body.txt
139
- - uses : actions/create-release@v1
134
+ run : git tag --format '%(contents:body)' --points-at > release-body.txt
135
+
136
+ - uses : ncipollo/release-action@v1
140
137
env :
141
138
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
142
139
with :
143
- tag_name : ${{ github.ref }}
144
- release_name : ${{ steps.release-info.outputs.subject }}
145
- body_path : release-body.txt
140
+ bodyFile : release-body.txt
0 commit comments