-
Notifications
You must be signed in to change notification settings - Fork 2
406 lines (399 loc) · 20.9 KB
/
CI-MATs.yml
File metadata and controls
406 lines (399 loc) · 20.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
---
name: CI-MATs
description: "Continuous Integration workflow for Minimal Acceptance Tests (MATs)."
run-name: Minimal Acceptance Tests
#
# This workflow runs after successful completion of CI-BUILD to ensure
# that the codebase meets minimal acceptance criteria.
#
# Jobs:
# - check_build: Verifies CI-BUILD success and sets up environment
# - MATS: Runs Machine Acceptance Tests across Python versions
# - MATS_STATUS: Reports final test status
#
# Triggers:
# - Automatically on CI-BUILD workflow completion
#
# Required Secrets: None
#
# Dependencies:
# - Requires successful completion of CI-BUILD workflow
on: # yamllint disable-line rule:truthy
workflow_run:
workflows: ["CI-BUILD"]
types:
- completed
# Declare default permissions as none.
permissions: {}
jobs:
check_build:
permissions:
actions: read
pull-requests: read
checks: write
runs-on: ubuntu-latest
env:
GH_TOKEN: ${{ github.token }}
outputs:
should_run: ${{ steps.check.outputs.should_run }}
sha: ${{ steps.load_build_info.outputs.build_sha }}
branch_name: ${{ steps.get_env.outputs.branch }}
parent_sha: ${{ steps.get_env.outputs.parent_sha }}
branch_ref: ${{ steps.get_env.outputs.branch_ref }}
trigger_id: ${{ steps.get_trigger_id.outputs.trigger_id }}
build_id: ${{ steps.load_build_info.outputs.build_id }}
build_url: ${{ steps.load_build_info.outputs.build_url }}
build_ref: ${{ steps.load_build_info.outputs.build_ref }}
build_ref_name: ${{ steps.load_build_info.outputs.build_ref_name }}
build_sha: ${{ steps.load_build_info.outputs.build_sha }}
build_artifact_filename: ${{ steps.load_build_info.outputs.build_artifact_filename }}
build_artifact_url: ${{ steps.load_build_info.outputs.build_artifact_url }}
build_artifact_id: ${{ steps.load_build_info.outputs.build_artifact_id }}
build_artifact_digest: ${{ steps.load_build_info.outputs.build_artifact_digest }}
build_pr_number: ${{ steps.load_build_info.outputs.build_pr_number }}
build_environment: ${{ steps.load_build_info.outputs.build_environment }}
mats_url: ${{ steps.output_run_id.outputs.mats_url }}
mats_id: ${{ steps.output_run_id.outputs.mats_id }}
check_id: ${{ steps.output_mats_check_id.outputs.check-id }}
if: ${{ (github.event.workflow_run.event == 'push') && (github.event.workflow_run.conclusion == 'success') }}
steps:
- id: check
run: |
if [[ "${{ github.event.workflow_run.conclusion }}" == "success" ]]; then
echo "should_run=true" >> "$GITHUB_OUTPUT"
else
echo "should_run=false" >> "$GITHUB_OUTPUT"
exit 1 ;
fi
- id: get_trigger_id
if: ${{ (github.repository == 'reactive-firewall-org/multicast') && (steps.check.outputs.should_run == 'true') && success() }}
run: |
ID_VALUE=$(gh api "${{ github.event.workflow_run.url }}" --jq '.id')
if [[ -n "$ID_VALUE" ]]; then
echo "trigger_id=$ID_VALUE" >> "$GITHUB_OUTPUT"
else
echo "trigger_id=null" >> "$GITHUB_OUTPUT" # Default fallback
fi
- name: "Fetch Build Info"
if: ${{ (github.repository == 'reactive-firewall-org/multicast') && (steps.check.outputs.should_run == 'true') && success() }}
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
path: "BUILD-info.txt"
pattern: multicast-info-*
repository: reactive-firewall-org/multicast
merge-multiple: true
github-token: ${{ env.GH_TOKEN }}
run-id: ${{ steps.get_trigger_id.outputs.trigger_id }}
digest-mismatch: error
- name: "move into place"
id: load_build_info
if: ${{ (github.repository == 'reactive-firewall-org/multicast') && (steps.check.outputs.should_run == 'true') && success() }}
run: |
mv -vf "BUILD-info.txt/BUILD-info.txt" ./"multicast-info.txt" ;
wait ;
rmdir -v ./"BUILD-info.txt"
mv -vf ./"multicast-info.txt" ./BUILD-info.txt
cat <"BUILD-info.txt" >> "$GITHUB_OUTPUT"
- id: output_run_id
shell: bash
if: ${{ (github.repository == 'reactive-firewall-org/multicast') && (steps.check.outputs.should_run == 'true') && !cancelled() }}
run: |
printf "mats_url=%s\n" 'https://github.com/reactive-firewall-org/multicast/actions/runs/${{ github.run_id }}' >> "$GITHUB_OUTPUT"
printf "mats_id=%s\n" ${{ github.run_id }} >> "$GITHUB_OUTPUT"
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
if: ${{ (github.repository == 'reactive-firewall-org/multicast') && (steps.check.outputs.should_run == 'true') && success() }}
with:
persist-credentials: false
ref: ${{ steps.load_build_info.outputs.build_sha }}
fetch-depth: 0
repository: reactive-firewall-org/multicast
token: ${{ env.GH_TOKEN }}
- name: "Queue MATs GitHub Check"
id: output_mats_check_id
uses: ./.github/actions/check-control
if: ${{ (github.repository == 'reactive-firewall-org/multicast') && (steps.check.outputs.should_run == 'true') && success() }}
with:
name: "CI-MATs"
title: "Minimal Acceptance Testing"
status: 'queued'
summary: 'Minimal Acceptance Testing is _Starting_'
sha: ${{ steps.load_build_info.outputs.build_sha }}
workflow-run-id: ${{ steps.output_run_id.outputs.mats_id }}
details-url: ${{ steps.output_run_id.outputs.mats_url }}
- name: Checkout target commit
if: ${{ (github.repository == 'reactive-firewall-org/multicast') && (steps.check.outputs.should_run == 'true') && success() }}
run: git checkout ${{ steps.load_build_info.outputs.build_sha }}
- id: get_env
if: ${{ (github.repository == 'reactive-firewall-org/multicast') && (steps.check.outputs.should_run == 'true') && success() }}
run: |
echo "branch=$(git name-rev --name-only $(git log -1 --format=%H) | cut -d~ -f1-1)" >> "$GITHUB_OUTPUT"
echo "parent_sha=$(git merge-base $(git log -1 --format=%H) refs/remotes/origin/stable)" >> "$GITHUB_OUTPUT"
BRANCH_REF=$(head -n1 <(git symbolic-ref HEAD 2>/dev/null || git show-ref $(git name-rev --name-only $(git log -1 --format=%H)) | cut -d\ -f2-2) ) ;
echo "branch_ref=${BRANCH_REF}" >> "$GITHUB_OUTPUT"
- name: "Start MATs GitHub Check"
id: start_mats_success
if: ${{ (steps.check.outputs.should_run == 'true') && success() && (github.repository == 'reactive-firewall-org/multicast') }}
uses: ./.github/actions/check-control
with:
name: "CI-MATs"
check-id: ${{ steps.output_mats_check_id.outputs.check-id }}
title: "Minimal Acceptance Testing"
status: 'in_progress'
summary: 'Minimal Acceptance Testing is _in progress_'
sha: ${{ steps.load_build_info.outputs.build_sha }}
workflow-run-id: ${{ steps.output_run_id.outputs.mats_id }}
details-url: ${{ steps.output_run_id.outputs.mats_url }}
MATS:
permissions:
actions: read
contents: read
pull-requests: read
statuses: write
needs: check_build
if: ${{ !cancelled() && (needs.check_build.outputs.should_run == 'true') }}
runs-on: ubuntu-latest
environment: ${{ needs.check_build.outputs.build_environment }}
defaults:
run:
shell: bash
timeout-minutes: 8
strategy:
matrix:
python-version: ["${{ vars.PYTHON_OLD_MIN }}", "${{ vars.PYTHON_DEFAULT }}", "${{ vars.PYTHON_EXPERIMENTAL }}"]
outputs:
mats_status: ${{ steps.tests.outputs.mats_status }}
python-version: ${{ steps.tests.outputs.python-version }}
artifact-id: ${{ steps.tests.outputs.artifact-id }}
artifact-name: ${{ steps.tests.outputs.artifact-name }}
artifact-url: ${{ steps.tests.outputs.artifact-url }}
artifact-digest: ${{ steps.tests.outputs.artifact-digest }}
artifact-files: ${{ steps.tests.outputs.artifact-files }}
env:
PYTHON_VERSION: ${{ matrix.python-version }}
LANG: "en_US.utf-8"
steps:
- name: pre-checkout repository for actions
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
ref: ${{ needs.check_build.outputs.sha }}
sparse-checkout: '.github/actions/checkout-and-rebuild'
- name: Checkout repository for MATs with ${{ matrix.python-version }}
id: fetch-build
uses: ./.github/actions/checkout-and-rebuild
with:
sha: ${{ needs.check_build.outputs.sha }}
build-run-id: ${{ needs.check_build.outputs.trigger_id }}
python-version: ${{ matrix.python-version }}
path: ${{ github.workspace }}
- name: Run Tests for python ${{ matrix.python-version }}
id: tests
uses: ./.github/actions/run-minimal-acceptance-tests
with:
sha: ${{ needs.check_build.outputs.sha }}
python-version: ${{ matrix.python-version }}
- name: Post-Clean
id: post
run: make -j1 -f Makefile clean || true ;
if: ${{ always() }}
MATs_SUMMARY:
permissions:
actions: read
pull-requests: read
checks: write
needs: [check_build, MATS]
runs-on: ubuntu-latest
if: ${{ !cancelled() && (needs.check_build.outputs.should_run == 'true') && (needs.MATS.outputs.mats_status != 'cancelled') }}
outputs:
mats_success: ${{ steps.report_status.outputs.mats_success }}
mats_sha: ${{ needs.check_build.outputs.sha }}
build_success: ${{ steps.report_status.outputs.build_success }}
build_trigger_id: ${{ needs.check_build.outputs.trigger_id }}
build_sha: ${{ needs.check_build.outputs.sha }}
steps:
- name: Download All Artifacts
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
path: ${{ github.workspace }}/MATS
pattern: multicast-mats-${{ needs.check_build.outputs.sha }}-part-*
merge-multiple: true
- name: "move into place"
shell: bash
run: |
mv -vf "MATS/test-reports" ./"test-reports" || : ;
if: ${{ (needs.check_build.outputs.should_run == 'true') && success() }}
- id: report_status
env:
BUILD_SHA: ${{ needs.check_build.outputs.build_sha }}
MATS_COMMENT_BODY: '${{ github.workspace }}/MATs-Summary-Artifact.txt'
run: |
if [[ "${{ needs.MATS.outputs.mats_status }}" == "success" ]]; then
echo "# :green_circle: Automated Code Checks Passed" > "${MATS_COMMENT_BODY}"
echo "" >> "${MATS_COMMENT_BODY}"
echo "mats_summary=Minimal Acceptance Tests Passed" >> "$GITHUB_OUTPUT"
echo "## :building_construction: Build" >> "${MATS_COMMENT_BODY}"
echo "" >> "${MATS_COMMENT_BODY}"
if [[ "${{ needs.check_build.outputs.should_run }}" == "true" ]]; then
echo " :ballot_box_with_check: BUILD \`${{ needs.check_build.outputs.trigger_id }}\` succeeded with commit [](https://github.com/reactive-firewall-org/multicast/commit/${BUILD_SHA})" >> "${MATS_COMMENT_BODY}"
echo "build_success=true" >> "$GITHUB_OUTPUT"
else
echo " :x: BUILD ${{ needs.check_build.outputs.trigger_id }} failed" >> "${MATS_COMMENT_BODY}"
echo "build_success=false" >> "$GITHUB_OUTPUT"
fi
echo "" >> "${MATS_COMMENT_BODY}"
echo "## :1234: Minimal Acceptance Testing" >> "${MATS_COMMENT_BODY}"
echo "" >> "${MATS_COMMENT_BODY}"
cat <./MATS/"MATs-Summary-Artifact-${{ vars.PYTHON_OLD_MIN }}.txt" >> "${MATS_COMMENT_BODY}"
echo "" >> "${MATS_COMMENT_BODY}"
cat <./MATS/"MATs-Summary-Artifact-${{ vars.PYTHON_DEFAULT }}.txt" >> "${MATS_COMMENT_BODY}"
echo "" >> "${MATS_COMMENT_BODY}"
cat <./MATS/"MATs-Summary-Artifact-${{ vars.PYTHON_EXPERIMENTAL }}.txt" >> "${MATS_COMMENT_BODY}"
echo "" >> "${MATS_COMMENT_BODY}"
echo "mats_success=true" >> "$GITHUB_OUTPUT"
else
echo "mats_summary=Minimal Acceptance Tests Unsuccessful" >> "$GITHUB_OUTPUT"
echo "# Unstable Commit" > "${MATS_COMMENT_BODY}"
echo "" >> "${MATS_COMMENT_BODY}"
echo "> [!CAUTION]" >> "${MATS_COMMENT_BODY}"
echo "> Unstable - This commit is failed to pass minimal acceptance testing." >> "${MATS_COMMENT_BODY}"
echo "" >> "${MATS_COMMENT_BODY}"
echo "## :construction: Build" >> "${MATS_COMMENT_BODY}"
echo "" >> "${MATS_COMMENT_BODY}"
if [[ "${{ needs.check_build.outputs.should_run }}" == "true" ]]; then
echo " :ballot_box_with_check: BUILD \`${{ needs.check_build.outputs.trigger_id }}\` succeeded with commit [${BUILD_SHA}](https://github.com/reactive-firewall-org/multicast/commit/${BUILD_SHA})" >> "${MATS_COMMENT_BODY}"
echo "build_success=true" >> "$GITHUB_OUTPUT"
else
echo " :x: BUILD ${{ needs.check_build.outputs.trigger_id }} failed" >> "${MATS_COMMENT_BODY}"
echo "build_success=false" >> "$GITHUB_OUTPUT"
fi
echo "" >> "$GITHUB_STEP_SUMMARY"
echo "## :red_circle: Minimal Acceptance Testing" >> "${MATS_COMMENT_BODY}"
echo "" >> "${MATS_COMMENT_BODY}"
echo " :x: MATs ${{ github.run_id }} failed with commit ${{ needs.check_build.outputs.sha }}" >> "${MATS_COMMENT_BODY}"
echo "" >> "${MATS_COMMENT_BODY}"
echo "## :1234: Minimal Acceptance Testing" >> "${MATS_COMMENT_BODY}"
echo "" >> "${MATS_COMMENT_BODY}"
cat <./MATS/"MATs-Summary-Artifact-${{ vars.PYTHON_OLD_MIN }}.txt" >> "${MATS_COMMENT_BODY}"
echo "" >> "${MATS_COMMENT_BODY}"
cat <./MATS/"MATs-Summary-Artifact-${{ vars.PYTHON_DEFAULT }}.txt" >> "${MATS_COMMENT_BODY}"
echo "" >> "${MATS_COMMENT_BODY}"
cat <./MATS/"MATs-Summary-Artifact-${{ vars.PYTHON_EXPERIMENTAL }}.txt" >> "${MATS_COMMENT_BODY}"
echo "" >> "${MATS_COMMENT_BODY}"
echo "mats_success=false" >> "$GITHUB_OUTPUT"
fi
cat <"${MATS_COMMENT_BODY}" >> "$GITHUB_STEP_SUMMARY"
{ echo 'mats_text<<EOF'; cat <"${MATS_COMMENT_BODY}"; echo EOF; } >> "$GITHUB_OUTPUT"
- name: "Upload MATs summary"
id: upload-mats-summary
if: ${{ !cancelled() && (github.repository == 'reactive-firewall-org/multicast') }}
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
path: ./MATs-Summary-Artifact.txt
name: MATS-COMMENT-BODY-${{ needs.check_build.outputs.sha }}
if-no-files-found: error
compression-level: 3
retention-days: 2
overwrite: true
- name: checkout repository actions for check
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
ref: ${{ needs.check_build.outputs.sha }}
sparse-checkout: '.github/actions/check-control'
- name: "Complete MATs GitHub Check"
id: complete_mats
if: ${{ (github.repository == 'reactive-firewall-org/multicast') && always() }}
uses: ./.github/actions/check-control
with:
name: "CI-MATs"
check-id: ${{ needs.check_build.outputs.check_id }}
title: "Minimal Acceptance Testing"
status: 'completed'
conclusion: ${{ needs.MATS.outputs.mats_status }}
summary: ${{ steps.report_status.outputs.mats_summary }}
text: ${{ steps.report_status.outputs.mats_text }}
sha: ${{ needs.check_build.outputs.sha }}
workflow-run-id: ${{ needs.check_build.outputs.mats_id }}
details-url: ${{ needs.check_build.outputs.mats_url }}
MATS_STATUS:
permissions:
actions: read
pull-requests: read
needs: [check_build, MATS]
runs-on: ubuntu-latest
if: ${{ !cancelled() && (needs.check_build.outputs.should_run == 'true') && (needs.MATS.outputs.mats_status != 'cancelled') }}
environment: ${{ needs.check_build.outputs.build_environment }}
outputs:
mats_success: ${{ steps.check_status.outputs.mats_success }}
mats_sha: ${{ needs.check_build.outputs.sha }}
build_success: ${{ steps.check_status.outputs.build_success }}
build_trigger_id: ${{ needs.check_build.outputs.trigger_id }}
build_sha: ${{ needs.check_build.outputs.sha }}
steps:
- id: check_status
run: |
if [[ "${{ needs.check_build.result }}" == "success" ]]; then
printf "%s\n" "build_success=${{ needs.check_build.outputs.should_run }}" >> "$GITHUB_OUTPUT"
printf "%s\n" "parent_sha=${{ needs.check_build.outputs.parent_sha }}" >> "$GITHUB_OUTPUT"
printf "%s\n" "build_url=${{ needs.check_build.outputs.build_url }}" >> "$GITHUB_OUTPUT"
printf "%s\n" "build_ref=${{ needs.check_build.outputs.build_ref }}" >> "$GITHUB_OUTPUT"
printf "%s\n" "build_sha=${{ needs.check_build.outputs.build_sha }}" >> "$GITHUB_OUTPUT"
printf "%s\n" "build_ref_name=${{ needs.check_build.outputs.build_ref_name }}" >> "$GITHUB_OUTPUT"
printf "%s\n" "build_artifact_filename=${{ needs.check_build.outputs.build_artifact_filename }}" >> "$GITHUB_OUTPUT"
printf "%s\n" "build_artifact_url=${{ needs.check_build.outputs.build_artifact_url }}" >> "$GITHUB_OUTPUT"
printf "%s\n" "build_artifact_id=${{ needs.check_build.outputs.build_artifact_id }}" >> "$GITHUB_OUTPUT"
printf "%s\n" "build_artifact_digest=${{ needs.check_build.outputs.build_artifact_digest }}" >> "$GITHUB_OUTPUT"
printf "%s\n" "build_pr_number=${{ needs.check_build.outputs.build_pr_number }}" >> "$GITHUB_OUTPUT"
printf "%s\n" "build_environment=${{ needs.check_build.outputs.build_environment }}" >> "$GITHUB_OUTPUT"
printf "%s\n" "build_id=${{ needs.check_build.outputs.build_id }}" >> "$GITHUB_OUTPUT"
cat <"$GITHUB_OUTPUT" >> "BUILD-info.txt"
else
printf "%s\n" "build_success=false" >> "$GITHUB_OUTPUT"
fi
if [[ "${{ needs.MATS.result }}" == "success" && "${{ needs.check_build.result }}" == "success" ]]; then
printf "%s\n" "mats_success=true" >> "$GITHUB_OUTPUT"
printf "%s\n" "mats_url=${{ github.api_url }}" >> "$GITHUB_OUTPUT"
printf "%s\n" "mats_ref=${{ needs.check_build.outputs.build_ref }}" >> "$GITHUB_OUTPUT"
printf "%s\n" "mats_sha=${{ needs.check_build.outputs.sha }}" >> "$GITHUB_OUTPUT"
printf "%s\n" "mats_ref_name=${{ needs.check_build.outputs.branch_ref }}" >> "$GITHUB_OUTPUT"
printf "%s\n" "mats_environment=${{ needs.check_build.outputs.build_environment }}" >> "$GITHUB_OUTPUT"
printf "%s\n" "mats_id=${{ github.run_id }}" >> "$GITHUB_OUTPUT"
else
printf "%s\n" "mats_success=false" >> "$GITHUB_OUTPUT"
fi
cat <"$GITHUB_OUTPUT" >> "multicast-info.txt"
- name: Upload build summary
id: upload-build-info
if: ${{ !cancelled() && (github.repository == 'reactive-firewall-org/multicast') }}
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
path: "multicast-info.txt"
name: multicast-info-${{ needs.check_build.outputs.sha }}
if-no-files-found: error
compression-level: 3
retention-days: 2
overwrite: true
MATs_REPORT:
permissions:
actions: read
contents: write
needs: [check_build, MATs_SUMMARY]
runs-on: ubuntu-latest
if: ${{ !cancelled() && (github.repository == 'reactive-firewall-org/multicast') }}
steps:
- name: "Download Status Summary Artifact"
id: download-mats-summary
if: ${{ !cancelled() && (github.repository == 'reactive-firewall-org/multicast') }}
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
name: MATS-COMMENT-BODY-${{ needs.check_build.outputs.sha }}
github-token: ${{ github.token }}
- name: "MATs commit comment"
id: mats-commit-comment
if: ${{ success() && (github.repository == 'reactive-firewall-org/multicast') }}
uses: peter-evans/commit-comment@f6d60c65d05bb59f750fa51ad3de1d443ba0eb52 # v4.0.0
with:
sha: ${{ needs.check_build.outputs.sha }}
token: ${{ github.token }}
body-path: '${{ steps.download-mats-summary.outputs.download-path }}/MATs-Summary-Artifact.txt'