Skip to content

Commit

Permalink
ci: fetch correct git commit for pull requests
Browse files Browse the repository at this point in the history
  • Loading branch information
tobhe committed Sep 4, 2023
1 parent 7211dd3 commit 16f455d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ jobs:
- name: Build
run: |
git clone https://github.com/openiked/openiked-portable.git
[ "${{ github.event.pull_request.number }}" = "" ] || (echo "fetching PR ${{ github.event.pull_request.number }}"; git fetch origin pull/${{ github.event.pull_request.number }}/head:pr-${{ github.event.pull_request.number }} && git checkout "pr-${{ github.event.pull_request.number }}")
cd openiked-portable
mkdir build; cd build
cmake .. -DCMAKE_BUILD_TYPE=$BUILD_TYPE
Expand All @@ -128,6 +129,7 @@ jobs:
- name: Build
run: |
git clone https://github.com/openiked/openiked-portable.git
[ "${{ github.event.pull_request.number }}" = "" ] || (echo "fetching PR ${{ github.event.pull_request.number }}"; git fetch origin pull/${{ github.event.pull_request.number }}/head:pr-${{ github.event.pull_request.number }} && git checkout "pr-${{ github.event.pull_request.number }}")
cd openiked-portable
mkdir build; cd build
cmake .. -DCMAKE_BUILD_TYPE=$BUILD_TYPE
Expand All @@ -146,6 +148,7 @@ jobs:
- name: Build
run: |
git clone https://github.com/openiked/openiked-portable.git
[ "${{ github.event.pull_request.number }}" = "" ] || (echo "fetching PR ${{ github.event.pull_request.number }}"; git fetch origin pull/${{ github.event.pull_request.number }}/head:pr-${{ github.event.pull_request.number }} && git checkout "pr-${{ github.event.pull_request.number }}")
cd openiked-portable
mkdir build; cd build
cmake .. -DCMAKE_BUILD_TYPE=$BUILD_TYPE
Expand Down

0 comments on commit 16f455d

Please sign in to comment.