From: Soeren Apel Date: Tue, 27 Aug 2024 20:49:25 +0000 (+0200) Subject: build.yml: Add summarized PR announcement for sigrok-cli X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=28f00cccab54197d452bb8b1f939d354c0ffa05b;p=sigrok-build.git build.yml: Add summarized PR announcement for sigrok-cli --- diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 30041a4..c7997bc 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 @@ -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 @@ -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