@@ -11,11 +11,11 @@ jobs:
11
11
runs-on : ubuntu-latest
12
12
steps :
13
13
- name : " Checkout"
14
- uses : actions/checkout@v2
14
+ uses : actions/checkout@v3.3.0
15
15
16
16
- name : " Extract branch name"
17
17
id : get_ref
18
- run : echo "##[set-output name= branch;] ${GITHUB_REF#refs/heads/}"
18
+ run : echo "branch= ${GITHUB_REF#refs/heads/}" >> "$GITHUB_OUTPUT "
19
19
20
20
- name : " Run first action"
21
21
id : action1
@@ -51,11 +51,11 @@ jobs:
51
51
runs-on : ubuntu-latest
52
52
steps :
53
53
- name : " Checkout"
54
- uses : actions/checkout@v2
54
+ uses : actions/checkout@v3
55
55
56
56
- name : " Extract branch name"
57
57
id : get_ref
58
- run : echo "##[set-output name= branch;] ${GITHUB_REF#refs/heads/}"
58
+ run : echo "branch= ${GITHUB_REF#refs/heads/}" >> "$GITHUB_OUTPUT "
59
59
60
60
- name : " Run separate dispatch"
61
61
id : action3
@@ -84,11 +84,11 @@ jobs:
84
84
runs-on : ubuntu-latest
85
85
steps :
86
86
- name : Checkout
87
- uses : actions/checkout@v2
87
+ uses : actions/checkout@v3
88
88
89
89
- name : " Extract branch name"
90
90
id : get_ref
91
- run : echo "##[set-output name= branch;] ${GITHUB_REF#refs/heads/}"
91
+ run : echo "branch= ${GITHUB_REF#refs/heads/}" >> "$GITHUB_OUTPUT "
92
92
93
93
- name : Run and wait
94
94
id : action4
@@ -121,7 +121,7 @@ jobs:
121
121
- id : extract_job_id
122
122
run : |
123
123
job_id=$(echo '${{steps.get_jobs.outputs.data}}' | jq '.jobs[] | select(.name == "greetJob") | .id')
124
- echo "::set-output name= job_id:: $job_id"
124
+ echo "job_id= $job_id" >> "$GITHUB_OUTPUT "
125
125
126
126
id : get_checkrun
127
127
with :
@@ -130,8 +130,8 @@ jobs:
130
130
check_id : ${{ steps.extract_job_id.outputs.job_id }}
131
131
- id : extract_annotations_data
132
132
run : |
133
- echo "::set-output name= title:: ${{ fromJson(steps.get_checkrun.outputs.data)[0].title }}"
134
- echo "::set-output name= message:: ${{ fromJson(steps.get_checkrun.outputs.data)[0].message }}"
133
+ echo "title= ${{ fromJson(steps.get_checkrun.outputs.data)[0].title }}" >> "$GITHUB_OUTPUT "
134
+ echo "message= ${{ fromJson(steps.get_checkrun.outputs.data)[0].message }}" >> "$GITHUB_OUTPUT "
135
135
- name : " Assert Job1 Action1 result"
136
136
run : |
137
137
if [[ "${{ env.ANNO_TITLE }}" != "${{ steps.extract_annotations_data.outputs.title }}" ]] ||
@@ -158,7 +158,7 @@ jobs:
158
158
- id : extract_job_id
159
159
run : |
160
160
job_id=$(echo '${{steps.get_jobs.outputs.data}}' | jq '.jobs[] | select(.name == "greetJob") | .id')
161
- echo "::set-output name= job_id:: $job_id"
161
+ echo "job_id= $job_id" >> "$GITHUB_OUTPUT "
162
162
163
163
id : get_checkrun
164
164
with :
@@ -167,8 +167,8 @@ jobs:
167
167
check_id : ${{ steps.extract_job_id.outputs.job_id }}
168
168
- id : extract_annotations_data
169
169
run : |
170
- echo "::set-output name= title:: ${{ fromJson(steps.get_checkrun.outputs.data)[0].title }}"
171
- echo "::set-output name= message:: ${{ fromJson(steps.get_checkrun.outputs.data)[0].message }}"
170
+ echo "title= ${{ fromJson(steps.get_checkrun.outputs.data)[0].title }}" >> "$GITHUB_OUTPUT "
171
+ echo "message= ${{ fromJson(steps.get_checkrun.outputs.data)[0].message }}" >> "$GITHUB_OUTPUT "
172
172
- name : " Assert Job1 Action2 result"
173
173
run : |
174
174
if [[ "${{ env.ANNO_TITLE }}" != "${{ steps.extract_annotations_data.outputs.title }}" ]] ||
@@ -195,7 +195,7 @@ jobs:
195
195
- id : extract_job_id
196
196
run : |
197
197
job_id=$(echo '${{steps.get_jobs.outputs.data}}' | jq '.jobs[] | select(.name == "greetJob") | .id')
198
- echo "::set-output name= job_id:: $job_id"
198
+ echo "job_id= $job_id" >> "$GITHUB_OUTPUT "
199
199
200
200
id : get_checkrun
201
201
with :
@@ -204,8 +204,8 @@ jobs:
204
204
check_id : ${{ steps.extract_job_id.outputs.job_id }}
205
205
- id : extract_annotations_data
206
206
run : |
207
- echo "::set-output name= title:: ${{ fromJson(steps.get_checkrun.outputs.data)[0].title }}"
208
- echo "::set-output name= message:: ${{ fromJson(steps.get_checkrun.outputs.data)[0].message }}"
207
+ echo "title= ${{ fromJson(steps.get_checkrun.outputs.data)[0].title }}" >> "$GITHUB_OUTPUT "
208
+ echo "message= ${{ fromJson(steps.get_checkrun.outputs.data)[0].message }}" >> "$GITHUB_OUTPUT "
209
209
- name : " Assert Job2 result"
210
210
run : |
211
211
if [[ "${{ env.ANNO_TITLE }}" != "${{ steps.extract_annotations_data.outputs.title }}" ]] ||
@@ -232,7 +232,7 @@ jobs:
232
232
- id : extract_job_id
233
233
run : |
234
234
job_id=$(echo '${{steps.get_jobs.outputs.data}}' | jq '.jobs[] | select(.name == "greetJob") | .id')
235
- echo "::set-output name= job_id:: $job_id"
235
+ echo "job_id= $job_id" >> "$GITHUB_OUTPUT "
236
236
237
237
id : get_checkrun
238
238
with :
@@ -241,8 +241,8 @@ jobs:
241
241
check_id : ${{ steps.extract_job_id.outputs.job_id }}
242
242
- id : extract_annotations_data
243
243
run : |
244
- echo "::set-output name= title:: ${{ fromJson(steps.get_checkrun.outputs.data)[0].title }}"
245
- echo "::set-output name= message:: ${{ fromJson(steps.get_checkrun.outputs.data)[0].message }}"
244
+ echo "title= ${{ fromJson(steps.get_checkrun.outputs.data)[0].title }}" >> "$GITHUB_OUTPUT "
245
+ echo "message= ${{ fromJson(steps.get_checkrun.outputs.data)[0].message }}" >> "$GITHUB_OUTPUT "
246
246
- name : " Assert Job3 result"
247
247
run : |
248
248
if [[ "${{ env.ANNO_TITLE }}" != "${{ steps.extract_annotations_data.outputs.title }}" ]] ||
0 commit comments