aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoralexv-smirnov <alex@ydb.tech>2023-03-30 17:34:17 +0300
committeralexv-smirnov <alex@ydb.tech>2023-03-30 17:34:17 +0300
commitfad74494597e71c0fcc1810c6c140c880f6d587c (patch)
tree3a1e9539ebe83444567dd75e574fd123fe2b153d
parent5edad89a8a68a895e0486b5cd1d7ae6e95a9359c (diff)
downloadydb-fad74494597e71c0fcc1810c6c140c880f6d587c.tar.gz
Checkout PR by ref
-rw-r--r--.github/workflows/build_and_test_ondemand.yml8
1 files changed, 7 insertions, 1 deletions
diff --git a/.github/workflows/build_and_test_ondemand.yml b/.github/workflows/build_and_test_ondemand.yml
index 26ae7e8a35..1d42ee661f 100644
--- a/.github/workflows/build_and_test_ondemand.yml
+++ b/.github/workflows/build_and_test_ondemand.yml
@@ -53,8 +53,14 @@ jobs:
- prepare-vm
runs-on: [ self-hosted, "${{ needs.provide-runner.outputs.label }}" ]
steps:
+ - name: Checkout PR
+ uses: actions/checkout@v3
+ if: github.event.pull_request.head.sha != ''
+ with:
+ ref: ${{ github.event.pull_request.head.sha }}
- name: Checkout
uses: actions/checkout@v3
+ if: github.event.pull_request.head.sha == ''
- name: Build
uses: ./.github/actions/build
with:
@@ -83,4 +89,4 @@ jobs:
github-token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
label: ${{ needs.provide-runner.outputs.label }}
instance-id: ${{ needs.provide-runner.outputs.instance-id }}
- \ No newline at end of file
+