Skip to content

Commit 30d5eaa

Browse files
committed
.github/workflows/01-make-dist.yml: try to post a link to tarballs on build page [#1400]
Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
1 parent e9806d3 commit 30d5eaa

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,3 +194,14 @@ jobs:
194194
nut-*.tar*
195195
compression-level: 0
196196
overwrite: true
197+
198+
# Abusing https://github.com/marketplace/actions/publish-test-report
199+
# to post a GHA check result with an URL
200+
- name: "GHA-01: Make dist and docs tarballs - download URL"
201+
uses: turing85/publish-report@v2
202+
if: ${{ always() }}
203+
with:
204+
comment-header: Dist and Docs for NUT build of ${{ env.GITHUB_HEAD_REF }}
205+
comment-message-success: Dist and Docs [tarballs-${{ env.GITHUB_HEAD_REF }}](${{ steps.upload_artifact.outputs.artifact-url }}) are available
206+
comment-message-failure: Dist and Docs tarballs were not archived for this build
207+
report-fail-on-error: true

0 commit comments

Comments
 (0)