Skip to content

Commit

Permalink
ci: force checkout to base commit when comparing code side
Browse files Browse the repository at this point in the history
  • Loading branch information
HaoboGu authored Dec 19, 2024
1 parent 5c95f92 commit 3ec02de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ jobs:
mv ./examples/use_config/nrf52840_ble/target/thumbv7em-none-eabihf/release/rmk-nrf52840 ./examples/use_config/nrf52840_ble/target/thumbv7em-none-eabihf/release/original.elf
- name: If it's a PR checkout the base commit
if: ${{ github.event.pull_request }}
run: git checkout ${{ github.event.pull_request.base.sha }}
run: git checkout -f ${{ github.event.pull_request.base.sha }}
- name: Rebuild with the base commit
if: ${{ github.event.pull_request }}
working-directory: ./examples/use_config/nrf52840_ble
Expand Down

0 comments on commit 3ec02de

Please sign in to comment.