Skip to content

Commit 94392b1

Browse files
authored
fix VERSION not being included in env
1 parent 3b20aee commit 94392b1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/readme-version.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ jobs:
2525
VERSION=$(grep -oP 'version\s*=\s*"\K\d+\.\d+\.\d+' build.gradle.kts)
2626
2727
# Update the README.md file
28-
python -c "import re; content=open('README.md').read(); content=re.sub(r'\d+\.\d+\.\d+', f'{VERSION}', content); open('README.md', 'w').write(content)"
28+
export VERSION
29+
python -c "import re, os; version=os.environ['VERSION']; content=open('README.md').read(); content=re.sub(r'\d+\.\d+\.\d+', f'{version}', content); open('README.md', 'w').write(content)"
2930
3031
- name: Commit and push changes
3132
run: |

0 commit comments

Comments
 (0)