Python3 Requests依赖报错-ImportError: urllib3 v2.0 only suports Openssl 1.1.1+ #45
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: auto-update-readme-by-issue | |
on: | |
issues: | |
types: [opened, edited, milestoned,deleted,pinned,unpinned,closed,reopened,labeled,unlabeled] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- name: install dependencies | |
run: | | |
pip3 install setuptools --user | |
pip3 install PyGithub==1.57 --user | |
pip3 install wordcloud --user | |
pip3 install matplotlib --user | |
- name: run python script | |
env: | |
GITHUB_TOKEN: ${{ secrets.BLOG_SECRET }} | |
run: python3 main.py | |
- name: config git info | |
env: | |
USERNAME: ${{ secrets.GIT_USERNAME }} | |
EMAIL: ${{ secrets.GIT_EMAIL }} | |
run: | | |
git config --global user.name $USERNAME | |
git config --global user.email $EMAIL | |
- name: commit change | |
run: | | |
git checkout master | |
git add . | |
git commit -m "Update from Github Action" | |
- name: push change | |
env: | |
USERNAME: ${{ secrets.GIT_USERNAME }} | |
GITHUB_TOKEN: ${{ secrets.BLOG_SECRET }} | |
run: | | |
git push https://$USERNAME:[email protected]/$GITHUB_REPOSITORY.git | |
- name: done | |
run: echo 'done' |