Skip to content

Commit 88004b3

Browse files
committed
.github/workflows/01-make-dist.yml: try to post a link to tarballs on build page - v2 (message/comment in PRs) [#1400]
Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
1 parent 50e824a commit 88004b3

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

.github/workflows/01-make-dist.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -206,13 +206,13 @@ jobs:
206206
compression-level: 0
207207
overwrite: true
208208

209-
# Abusing https://github.com/marketplace/actions/publish-test-report
210-
# to post a GHA check result with an URL
211-
- name: "GHA-01: Make dist and docs tarballs - download URL"
212-
uses: turing85/publish-report@v2
213-
if: ${{ always() }}
209+
# https://github.com/thollander/actions-comment-pull-request
210+
# FIXME: Something that adds/updates Github Checks would be better
211+
# as it would be seen in the list attached to a status icon of any
212+
# build (e.g. history of master branch)
213+
- name: "GHA-01: Make dist and docs tarballs - report download URL"
214+
uses: thollander/actions-comment-pull-request@v3
215+
if: startsWith(github.ref, 'refs/pull/')
214216
with:
215-
comment-header: Dist and Docs for NUT build of ${{ env.GITHUB_HEAD_REF }}
216-
comment-message-success: Dist and Docs [tarballs-${{ env.GITHUB_HEAD_REF }}](${{ steps.upload_artifact.outputs.artifact-url }}) are available
217-
comment-message-failure: Dist and Docs tarballs were not archived for this build
218-
report-fail-on-error: true
217+
comment-tag: latest-tarball
218+
message: Dist and Docs [tarballs-${{ steps.subst-github-ref.outputs.result }.zip}](${{ steps.upload_artifact.outputs.artifact-url }}) are available for commit ${{ github.workflow_sha }}

0 commit comments

Comments
 (0)