Skip to content

Commit 3b20aee

Browse files
authored
Update readme-version.yml
fix python formatting
1 parent 4cf1e66 commit 3b20aee

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

.github/workflows/readme-version.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,15 @@ jobs:
2121

2222
- name: Update version in README
2323
run: |
24-
# Install the required Python packages
25-
python -m pip install --upgrade pip
26-
pip install beautifulsoup4
27-
2824
# Extract the version from the build.gradle.kts file
2925
VERSION=$(grep -oP 'version\s*=\s*"\K\d+\.\d+\.\d+' build.gradle.kts)
3026
3127
# Update the README.md file
32-
python -c "import re; with open('README.md', 'r') as file: content = file.read(); content = re.sub(r'\d+\.\d+\.\d+', f'{VERSION}', content); with open('README.md', 'w') as file: file.write(content)"
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)"
3329
3430
- name: Commit and push changes
3531
run: |
3632
git config --global user.name "GitHub Actions Bot"
37-
git config --global user.email "<your-email-here>"
33+
git config --global user.email "collinjbarber@gmail.com"
3834
git add README.md
3935
git diff --quiet && git diff --staged --quiet || (git commit -m "Update version in README.md" && git push)

0 commit comments

Comments
 (0)