Skip to content

Commit f763f88

Browse files
committed
Update build workflow: PR comments and artifacts
Add PR-facing comments and artifact wiring to the CI workflow. Post a sticky comment after Gradle tests to indicate artifacts availability, add an upload-artifact step with an id, and update the sticky-comment step to use the artifact output URL (steps.upload-artifact.outputs.artifact-url) and a consistent header. These changes make build artifacts discoverable on pull requests.
1 parent 918805d commit f763f88

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

.github/workflows/build.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,15 @@ jobs:
2424

2525
- name: Build with Gradle
2626
run: ./gradlew test
27+
28+
- name: Add comment with binaries
29+
if: ${{ github.event_name == 'pull_request' }}
30+
uses: marocchino/sticky-pull-request-comment@v2
31+
with:
32+
append: true
33+
header: artifacts
34+
message: |
35+
Tests completed successfully. Build artifacts will be available after the build job.
2736
build:
2837
name: (${{ matrix.os_prefix }}/${{ matrix.arch }}) Create Processing Build
2938
runs-on: ${{ matrix.os }}
@@ -74,6 +83,7 @@ jobs:
7483

7584
- name: Add artifact for PR
7685
if: ${{ github.event_name == 'pull_request' }}
86+
id: upload-artifact
7787
uses: actions/upload-artifact@v4
7888
with:
7989
name: processing-${{ matrix.os_prefix }}-${{ matrix.arch }}-pr_${{ github.event.pull_request.number }}
@@ -85,9 +95,9 @@ jobs:
8595
uses: marocchino/sticky-pull-request-comment@v2
8696
with:
8797
append: true
88-
header: '## Build Artifacts'
98+
header: artifacts
8999
message: |
90-
### (${{ matrix.os_prefix }}/${{ matrix.arch }}) Build Artifacts
91-
- [Download processing-${{ matrix.os_prefix }}-${{ matrix.arch }}-pr_${{ github.event.pull_request.number }}](${{ steps.upload-artifact.outputs.download_url }})
100+
### (${{ matrix.os_prefix }}/${{ matrix.arch }})
101+
- [Download processing-${{ matrix.os_prefix }}-${{ matrix.arch }}-pr_${{ github.event.pull_request.number }}](${{ steps.upload-artifact.outputs.artifact-url }})
92102
env:
93103
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)