Skip to content

Commit

Permalink
[GHA] Dynamic OV ref (#937)
Browse files Browse the repository at this point in the history
  • Loading branch information
akladiev authored Oct 31, 2024
1 parent 4272f47 commit c39462c
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/history_cuda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,17 @@ 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
steps:
- 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
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit c39462c

Please sign in to comment.