Skip to content

Commit bb4914c

Browse files
[CONFIG] Possible fix for CI regression (- WIP #338 -)
Changes in file .github/workflows/CI-BUILD.yml: * invert role of summary and buffer file *make path to buffer file absolute
1 parent 85ad1f2 commit bb4914c

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

.github/workflows/CI-BUILD.yml

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -250,28 +250,30 @@ jobs:
250250
BUILD_ARTIFACT_FILES: ${{ steps.output_artifact_files.outputs.files }}
251251
shell: bash
252252
run: |
253-
printf "%s\n" "## :building_construction: Build" > "$GITHUB_STEP_SUMMARY"
254-
printf "%s\n" ":ballot_box_with_check: BUILD \`${BUILD_ID}\` succeeded with commit [${BUILD_SHA}](https://github.com/reactive-firewall/multicast/commit/${BUILD_SHA})" >> "$GITHUB_STEP_SUMMARY"
253+
printf "%s\n" "## :building_construction: Build" > "${{ github.workspace }}/BUILD_COMMENT_BODY_${BODY_SHA}.md"
254+
printf "%s\n" ":ballot_box_with_check: BUILD \`${BUILD_ID}\` succeeded with commit [${BUILD_SHA}](https://github.com/reactive-firewall/multicast/commit/${BUILD_SHA})" >> "${{ github.workspace }}/BUILD_COMMENT_BODY_${BODY_SHA}.md"
255255
if [[ ( -d dist ) ]] ; then
256256
for BLD_FILE in ${BUILD_ARTIFACT_FILES} ; do
257-
printf "%s\n" " * Including building the file \`${BLD_FILE}\`" >> "$GITHUB_STEP_SUMMARY"
257+
printf "%s\n" " * Including building the file \`${BLD_FILE}\`" >> "${{ github.workspace }}/BUILD_COMMENT_BODY_${BODY_SHA}.md"
258258
done
259-
printf "%s\n" " * Including producing the build artifact [multicast-build-${BUILD_SHA}](https://github.com/reactive-firewall/multicast/actions/runs/${BUILD_ID}#artifacts)" >> "$GITHUB_STEP_SUMMARY"
259+
printf "%s\n" " * Including producing the build artifact [multicast-build-${BUILD_SHA}](https://github.com/reactive-firewall/multicast/actions/runs/${BUILD_ID}#artifacts)" >> "${{ github.workspace }}/BUILD_COMMENT_BODY_${BODY_SHA}.md"
260260
fi
261-
cat <"$GITHUB_STEP_SUMMARY" >> "BUILD_COMMENT_BODY_${BODY_SHA}.md"
261+
cat <"${{ github.workspace }}/BUILD_COMMENT_BODY_${BODY_SHA}.md" >> "$GITHUB_STEP_SUMMARY"
262262
if: ${{ success() && (github.repository == 'reactive-firewall/multicast') }}
263-
- name: "Build commit comment"
264-
id: mats_commit_comment
265-
uses: peter-evans/commit-comment@5a6f8285b8f2e8376e41fe1b563db48e6cf78c09 # v3.0.0
266-
with:
267-
body-path: 'BUILD_COMMENT_BODY_${{ github.sha }}.md'
268263
- name: "Summarize Build (FAILED)"
269264
id: summarize-build-failure
270265
env:
271266
BUILD_ID: ${{ github.run_id }}
272267
BUILD_SHA: ${{ github.sha }}
273268
shell: bash
274269
run: |
275-
printf "%s\n" "## :construction: Build" > "$GITHUB_STEP_SUMMARY"
276-
printf "%s\n" ":x: ~BUILD ${BUILD_ID} succeeded with commit [${BUILD_SHA}](https://github.com/reactive-firewall/multicast/commit/${BUILD_SHA})~" > "$GITHUB_STEP_SUMMARY"
270+
printf "%s\n" "## :construction: Build" > "${{ github.workspace }}/BUILD_COMMENT_BODY_${BODY_SHA}.md"
271+
printf "%s\n" ":x: ~BUILD ${BUILD_ID} succeeded with commit [${BUILD_SHA}](https://github.com/reactive-firewall/multicast/commit/${BUILD_SHA})~" > "${{ github.workspace }}/BUILD_COMMENT_BODY_${BODY_SHA}.md"
272+
cat <"${{ github.workspace }}/BUILD_COMMENT_BODY_${BODY_SHA}.md" >> "$GITHUB_STEP_SUMMARY"
277273
if: ${{ failure() && (github.repository == 'reactive-firewall/multicast') }}
274+
- name: "Build commit comment"
275+
if: ${{ success() && (github.repository == 'reactive-firewall/multicast') }}
276+
id: mats_commit_comment
277+
uses: peter-evans/commit-comment@5a6f8285b8f2e8376e41fe1b563db48e6cf78c09 # v3.0.0
278+
with:
279+
body-path: '${{ github.workspace }}/BUILD_COMMENT_BODY_${{ github.sha }}.md'

0 commit comments

Comments
 (0)