Skip to content

Commit

Permalink
build.yml: Check out PR instead of sigrok repo when needed
Browse files Browse the repository at this point in the history
  • Loading branch information
abraxa committed Aug 25, 2024
1 parent d6204ae commit 95ccd2f
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -353,12 +353,24 @@ jobs:
source sigrok-appimage-init-toolchain.sh
./sigrok-appimage-build-dependencies.sh
- name: Checkout sigrok-cli
- name: Checkout sigrok's sigrok-cli
# Check out default sigrok-cli repository unless we're processing a pull request
if: (github.event_name != 'pull_request')
uses: actions/checkout@v4
with:
repository: sigrokproject/sigrok-cli
path: sigrok-cli

- name: Checkout sigrok-cli from PR
# Check out sigrok-cli branch of the pull request we're processing
if: (github.event_name == 'pull_request')
uses: actions/checkout@v4
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.ref }}
path: sigrok-cli
fetch-depth: 0

- name: Build sigrok-cli
run: |
source sigrok-build/ci/appimage/sigrok-appimage-init-toolchain.sh

0 comments on commit 95ccd2f

Please sign in to comment.