From f99c1226bbd7b822a6a2c195dd6105c60e387980 Mon Sep 17 00:00:00 2001 From: Mykhailo Kuznietsov Date: Fri, 11 Oct 2024 12:26:18 +0300 Subject: [PATCH] chore: fix release workflow (#2796) Signed-off-by: Mykhailo Kuznietsov --- .github/workflows/release.yml | 4 ++++ make-release.sh | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 566ae7f5db..0cb4ab04eb 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -42,6 +42,10 @@ jobs: echo "[ERROR] Cannot proceed with release - tag already exists" fi fi + - name: Set up Python 3.9 + uses: actions/setup-python@v4 + with: + python-version: 3.9 - name: Set up yq run: | python -m pip install --upgrade pip diff --git a/make-release.sh b/make-release.sh index 85a272c3c3..eabd493347 100755 --- a/make-release.sh +++ b/make-release.sh @@ -66,7 +66,7 @@ updateYaml() { return 1 else if [[ $(git rev-parse --abbrev-ref HEAD) == *"${BRANCH}"* ]]; then - replaceFieldSed $playbookfile 'version' "${BRANCH}" + replaceFieldSed $playbookfile '^version' "${BRANCH}" replaceFieldSed $playbookfile 'prerelease' "false" fi # special fields for updating PR for 7.x.y branch