Skip to content

Commit 55809c1

Browse files
Merge pull request opendatahub-io#395 from openshift-cherrypick-robot/cherry-pick-394-to-v1.7-branch
[v1.7-branch] [patch fix] Remove debug code lines that break the gha
2 parents 0797bee + c4eb6b4 commit 55809c1

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

.github/workflows/notebook-controller-images-updater.yaml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
- name: Extract version from branch-name
5353
id: version
5454
run: |
55-
if VERSION=$(echo "${{ env.BRANCH_NAME }}" | sed -E 's/^v([0-9]+\.[0-9]+)-.*/\1/') then
55+
if [[ "${{ env.BRANCH_NAME }}" == "main" ]]; then
5656
VERSION="main"
5757
else
5858
VERSION=$(echo "${{ env.BRANCH_NAME }}" | sed -E 's/^v([0-9]+\.[0-9]+)-.*/\1/')
@@ -65,15 +65,6 @@ jobs:
6565
echo "VERSION=$VERSION" >> ${GITHUB_OUTPUT}
6666
echo "Extracted VERSION is: $VERSION"
6767
68-
69-
if [[ "${{ env.BRANCH_NAME }}" == "main" ]]; then
70-
VERSION="main"
71-
else
72-
VERSION=$(echo "${{ env.BRANCH_NAME }}" | sed -E 's/^v([0-9]+\.[0-9]+)-.*/\1/')
73-
fi
74-
echo "VERSION=$VERSION" >> ${GITHUB_OUTPUT}
75-
echo "Extracted VERSION is: $VERSION"
76-
7768
- name: Update related files
7869
id: apply-changes
7970
run: |

0 commit comments

Comments
 (0)