Update github myprofile #27
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 github myprofile | |
on: 'page_build' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install Reqs | |
run: | | |
sudo apt-get install python3-setuptools | |
- name: Run | |
run: | | |
cd ./github_myprofile_updater | |
python3 update.py | |
git init | |
git config --local user.name "${GITHUB_ACTOR}" | |
git config --local user.email "kyonhuang@qq.com" | |
export remote_repo="https://${GITHUB_ACTOR}:${{ secrets.GHRS_GITHUB_API_TOKEN }}@github.com/bighuang624/bighuang624.git" | |
git add README.md | |
git add images | |
git commit -m "update my description automatically" | |
git push "${remote_repo}" HEAD:main --force |