Skip to content

Commit 33f1bfa

Browse files
committed
ci: Add update of pre-commit version to release
1 parent 5870c28 commit 33f1bfa

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,21 @@ jobs:
2727
sed -i "s/^version = .*/version = \"$TAG\"/" pyproject.toml
2828
cat pyproject.toml
2929
30-
- name: Update README.md
30+
- name: Update README.md - Github Action version
3131
env:
3232
TAG: ${{ steps.read_tag.outputs.TAG }}
3333
run: |
3434
sed -i "s/kvankova\/code-embedder@.*/kvankova\/code-embedder@$TAG/" README.md
3535
cat README.md
3636
37+
- name: Update README.md - Pre-commit version
38+
env:
39+
TAG: ${{ steps.read_tag.outputs.TAG }}
40+
run: |
41+
sed -i "s/code-embedder==.*/code-embedder==$TAG/" README.md
42+
sed -i "s/rev: v[0-9]\+\.[0-9]\+\.[0-9]\+/rev: $TAG/" README.md
43+
cat README.md
44+
3745
- name: Commit and push changes
3846
env:
3947
TAG: ${{ steps.read_tag.outputs.TAG }}

0 commit comments

Comments
 (0)