Skip to content

Commit fcec388

Browse files
Fix K version fetching in update-version (#2794)
* Fix the K version fetching in `update-version` workflow * Check if the `sed` replacement succeeded with the expected version * Refine the check on whether the K version was updated correctly
1 parent 85914ca commit fcec388

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/update-version.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,10 @@ jobs:
4444
- name: 'Update pyk release tag'
4545
run: |
4646
K_VERSION=$(cat deps/k_release)
47-
sed -i 's! "kframework==[0-9\.]*,"! "kframework=='${K_VERSION}'",!' kevm-pyk/pyproject.toml
47+
sed -i 's! "kframework==[0-9\.]*",! "kframework=='${K_VERSION}'",!' kevm-pyk/pyproject.toml
48+
if ! grep -q "kframework==$K_VERSION" kevm-pyk/pyproject.toml; then
49+
echo "Update failed: kframework==$K_VERSION not found"; exit 1
50+
fi
4851
uv --project kevm-pyk lock --upgrade
4952
git add kevm-pyk/ && git commit -m "kevm-pyk/: sync uv files pyk version ${K_VERSION}" || true
5053
- name: 'Update plugin release file'

kevm-pyk/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ readme = "README.md"
1010
requires-python = "~=3.10"
1111
dependencies = [
1212
"frozendict>=2.4.6,<3",
13-
"kframework==7.1.280",
13+
"kframework==7.1.282",
1414
"pathos",
1515
"tomlkit>=0.11.6",
1616
]

0 commit comments

Comments
 (0)