Skip to content

Commit f99c122

Browse files
authored
chore: fix release workflow (#2796)
Signed-off-by: Mykhailo Kuznietsov <mkuznets@redhat.com>
1 parent 0e15da4 commit f99c122

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ jobs:
4242
echo "[ERROR] Cannot proceed with release - tag already exists"
4343
fi
4444
fi
45+
- name: Set up Python 3.9
46+
uses: actions/setup-python@v4
47+
with:
48+
python-version: 3.9
4549
- name: Set up yq
4650
run: |
4751
python -m pip install --upgrade pip

make-release.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ updateYaml() {
6666
return 1
6767
else
6868
if [[ $(git rev-parse --abbrev-ref HEAD) == *"${BRANCH}"* ]]; then
69-
replaceFieldSed $playbookfile 'version' "${BRANCH}"
69+
replaceFieldSed $playbookfile '^version' "${BRANCH}"
7070
replaceFieldSed $playbookfile 'prerelease' "false"
7171
fi
7272
# special fields for updating PR for 7.x.y branch

0 commit comments

Comments
 (0)