Update github myprofile #126
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 "[email protected]" | |
export remote_repo="https://${GITHUB_ACTOR}:${{ secrets.GHRS_GITHUB_API_TOKEN }}@github.com/Chen-Yang-Liu/Chen-Yang-Liu.git" | |
git add README.md | |
git commit -m "update my description automatically" | |
git push "${remote_repo}" HEAD:main --force |