Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/conf-build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,15 @@ jobs:
echo "${{ github.event.pull_request.head.sha }}" > ${{ runner.temp }}/common/pr-head-sha

- name: Upload linux artifact
id: upload_build
uses: actions/upload-artifact@v4
with:
name: linux
path: build/default-develop/packages-default-develop/*

- name: Save artifact URL to file
run: echo "${{ steps.upload_build.outputs.artifact-url }}" > ${{ runner.temp }}/common/artifact_url.txt

- name: Upload common artifact
uses: actions/upload-artifact@v4
with:
Expand Down
49 changes: 49 additions & 0 deletions .github/workflows/post-build-artifacts.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Lint and Comment on PR

on:
workflow_run:
workflows: [push-build-test-lint-release]
types:
- completed

jobs:
comment:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
permissions:
actions: read
pull-requests: write

steps:
- name: 'Download common artifact'
uses: actions/download-artifact@v4
with:
name: common
github-token: ${{ secrets.GITHUB_TOKEN }}
run-id: ${{ github.event.workflow_run.id }}
path: ${{ runner.temp }}

- name: Build PR comment
id: build_comment
working-directory: ${{ runner.temp }}
run: |
echo "🧩 Build Artifacts" > comment.md
echo "" >> comment.md
echo "✅ The following build artifacts were produced:" >> comment.md
echo "" >> comment.md
url=$(cat artifact_url.txt)
echo "- [**${{ runner.name }}**](${url})" >> comment.md
echo "" >> comment.md

- name: Read PR variables
id: getprv
working-directory: ${{ runner.temp }}
run: |
echo "prn=$(cat pr_number)" >> $GITHUB_OUTPUT

- name: Post or update PR comment
uses: peter-evans/create-or-update-comment@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ steps.getprv.outputs.prn }}
body-path: ${{ runner.temp }}/comment.md