use List
instead of list
for 3.8 support
#114
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update Version | |
on: [push] | |
jobs: | |
update: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Set up Python 3.10 | |
uses: actions/setup-python@v1 | |
with: | |
python-version: '3.10' | |
- name: Update Readme and Badge Version | |
run: | | |
python .github/workflows/scripts/update_version.py | |
- name: Push changes | |
run: | | |
if [[ `git status --porcelain` ]]; then | |
git add Readme.md | |
git add easyDataverse/__init__.py | |
git config --global user.name 'VersionBot' | |
git config --global user.email '[email protected]' | |
git commit -am "Update version" | |
git push | |
else | |
echo "Nothing changed here!" | |
fi |