Skip to content

基于Github Action自动生成并更新GitHub Issue博客的ReadMe #16

基于Github Action自动生成并更新GitHub Issue博客的ReadMe

基于Github Action自动生成并更新GitHub Issue博客的ReadMe #16

Workflow file for this run

name: CI
on: [issues, issue_comment]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: install dependencies
run: |
pip3 install setuptools --user
pip3 install PyGithub --user
pip3 install wordcloud --user
pip3 install matplotlib --user
- name: run python script
env:
GITHUB_LOGIN: notquiteleo
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: python3 main.py
- name: config git info
run: |
git config --global user.email "[email protected]"
git config --global user.name "Leo"
- name: commit change
run: |
git checkout master
git pull
git add .
git commit -m "Update from Github Action"
- name: push change
env:
GITHUB_LOGIN: notquiteleo
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git push https://$GITHUB_LOGIN:[email protected]/$GITHUB_REPOSITORY.git
- name: done
run: echo 'done'