diff --git a/.github/workflows/history_cuda.yml b/.github/workflows/history_cuda.yml index 84121ce61..0e8e59be8 100644 --- a/.github/workflows/history_cuda.yml +++ b/.github/workflows/history_cuda.yml @@ -10,6 +10,9 @@ on: permissions: read-all +env: + OV_BRANCH: ${{ github.base_ref || github.event.merge_group.base_ref || github.ref }} + jobs: history: runs-on: ubuntu-22.04 @@ -17,7 +20,7 @@ jobs: - name: checkout master branch uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 with: - ref: master + ref: ${{ env.OV_BRANCH}} fetch-depth: 0 - name: delete temporary branch run: git branch -D temporary-ci-branch | echo 1 diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 2fff2f20d..f24680801 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -14,6 +14,7 @@ concurrency: env: PYTHON_VERSION: '3.11' + OV_BRANCH: ${{ github.base_ref || github.event.merge_group.base_ref || github.ref }} permissions: read-all @@ -58,7 +59,7 @@ jobs: repository: 'openvinotoolkit/openvino' path: ${{ env.OPENVINO_REPO }} submodules: 'true' - ref: 'master' + ref: ${{ env.OV_BRANCH}} - name: Clone OpenVINO Contrib uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 @@ -240,7 +241,7 @@ jobs: install_build_dependencies.sh sparse-checkout-cone-mode: false repository: 'openvinotoolkit/openvino' - ref: 'master' + ref: ${{ env.OV_BRANCH}} path: ${{ env.OPENVINO_REPO }} - name: Install Prerequisites diff --git a/.github/workflows/mac.yml b/.github/workflows/mac.yml index efcf159b7..b270bbd71 100644 --- a/.github/workflows/mac.yml +++ b/.github/workflows/mac.yml @@ -14,6 +14,7 @@ concurrency: env: PYTHON_VERSION: '3.11' + OV_BRANCH: ${{ github.base_ref || github.event.merge_group.base_ref || github.ref }} permissions: read-all @@ -48,7 +49,7 @@ jobs: repository: 'openvinotoolkit/openvino' path: 'openvino' submodules: 'true' - ref: 'master' + ref: ${{ env.OV_BRANCH}} - name: Clone OpenVINO Contrib uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 464a608f3..d9db712af 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -15,6 +15,7 @@ concurrency: env: PYTHON_VERSION: '3.11' + OV_BRANCH: ${{ github.base_ref || github.event.merge_group.base_ref || github.ref }} permissions: read-all @@ -50,7 +51,7 @@ jobs: repository: 'openvinotoolkit/openvino' path: ${{ env.OPENVINO_REPO }} submodules: 'true' - ref: 'master' + ref: ${{ env.OV_BRANCH}} - name: Clone OpenVINO Contrib uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6