Skip to content

Commit

Permalink
build.yml: Add summarized PR announcement for sigrok-cli
Browse files Browse the repository at this point in the history
  • Loading branch information
abraxa committed Aug 27, 2024
1 parent 54bf428 commit 28f00cc
Showing 1 changed file with 42 additions and 2 deletions.
44 changes: 42 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -687,6 +687,7 @@ jobs:
runs-on: ubuntu-latest

needs:
# Keep in sync with job announce_pv_builds_in_pr
- build_pulseview_mxe
- build_pulseview_appimage
- build_pulseview_macos
Expand Down Expand Up @@ -724,6 +725,7 @@ jobs:
runs-on: ubuntu-latest

needs:
# Keep in sync with job announce_sigrok-cli_builds_in_pr
- build_sigrok-cli_mxe
- build_sigrok-cli_appimage
- build_sigrok-cli_macos
Expand Down Expand Up @@ -767,14 +769,52 @@ jobs:


announce_pv_builds_in_pr:
name: Announce builds in PR
name: Announce PV builds in PR

if: (github.event_name == 'pull_request')

runs-on: ubuntu-latest

needs:
- continuous_release_pulseview
# Keep in sync with job continuous_release_pulseview
- build_pulseview_mxe
- build_pulseview_appimage
- build_pulseview_macos

steps:
- name: Post comment to PR
uses: actions/github-script@v7
env:
PR_COMMENT: |-
## PulseView binaries created
| Build | Link |
---------------------------------------------------
${{ env.PR_LINKS }}
Note: Binaries are removed after 90 days. If necessary, re-trigger a build by commenting '/build'.
with:
script: |
github.rest.issues.createComment({
issue_number: ${{ github.event.pull_request.number }},
owner: context.repo.owner,
repo: context.repo.repo,
body: process.env.PR_COMMENT
})
announce_sigrok-cli_builds_in_pr:
name: Announce sigrok-cli builds in PR

if: (github.event_name == 'pull_request')

runs-on: ubuntu-latest

needs:
# Keep in sync with job continuous_release_pulseview
- build_sigrok-cli_mxe
- build_sigrok-cli_appimage
- build_sigrok-cli_macos

steps:
- name: Post comment to PR
Expand Down

0 comments on commit 28f00cc

Please sign in to comment.