Skip to content

Commit 5719ee6

Browse files
committed
Added pull request ref to build latest noobaa
Signed-off-by: Aayush Chouhan <[email protected]>
1 parent 72ce1cd commit 5719ee6

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/upgrade-tests.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: Upgrade Tests
2-
on: [push, pull_request, workflow_dispatch]
2+
on: [pull_request]
33

44
jobs:
55
upgrade-tests:
@@ -35,6 +35,7 @@ jobs:
3535
with:
3636
repository: 'noobaa/noobaa-core'
3737
path: 'noobaa-core'
38+
ref: ${{ github.event.pull_request.base.ref }}
3839

3940
- name: Build noobaa (latest)
4041
run: |
@@ -79,8 +80,8 @@ jobs:
7980
- name: Upgrade noobaa to latest
8081
run: |
8182
cd ./noobaa-operator
82-
VERSION=$(go run cmd/version/main.go)
83-
./build/_output/bin/noobaa-operator upgrade --noobaa-image='noobaa-core:upgrade-tests' --operator-image='noobaa/noobaa-operator:$VERSION'
83+
OPERATOR_VERSION=$(go run cmd/version/main.go)
84+
./build/_output/bin/noobaa-operator upgrade --noobaa-image='noobaa-core:upgrade-tests' --operator-image='noobaa/noobaa-operator:$OPERATOR_VERSION'
8485
8586
- name: Run Upgrade Tests
8687
run: |

0 commit comments

Comments
 (0)