Skip to content

Commit

Permalink
build.yml: Make sigrok-cli post artifact URL for PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
abraxa committed Aug 24, 2024
1 parent cb7449e commit 70f58ab
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -385,11 +385,34 @@ jobs:
mv sigrok-cli-*.AppImage sigrok-cli-NIGHTLY-${{ matrix.target.target }}-debug.appimage
- name: Upload artifact
uses: actions/upload-artifact@v3
id: upload_sigrok-cli_appimage_artifact
uses: actions/upload-artifact@v4
with:
name: artifact-sigrok-cli-x86_64-appimage
path: sigrok-build/ci/appimage/appimage-build/sigrok-cli-*.appimage

- name: Output artifact URL
# Only relevant for pull requests
if: (github.event_name == 'pull_request')
run: |
echo 'Artifact URL is ${{ steps.upload_sigrok-cli_appimage_artifact.outputs.artifact-url }}'
- name: Add artifact message to pull request
# Only relevant for pull requests
if: (github.event_name == 'pull_request')
uses: actions/github-script@v7
env:
PR_NOTES: |
sigrok-cli AppImage created: ${{ steps.upload_sigrok-cli_appimage_artifact.outputs.artifact-url }}
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_NOTES
})
build_pulseview_macos:
name: PulseView macOS build
Expand Down

0 comments on commit 70f58ab

Please sign in to comment.