Merge branch 'main' of https://github.com/caedenph/leetcode #32
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
# The objective of this GitHub Action is to update the README.md file (if needed) | |
# when doing a git push | |
name: Update README Algorithm Tracker | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: 3.x | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install requests tabulate | |
- name: Write README.md | |
run: | | |
python3 .github/workflows/scripts/update_readme.py | |
git config --global user.name github-actions | |
git config --global user.email '${GITHUB_ACTOR}@users.noreply.github.com' | |
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY | |
- name: Update README.md | |
run: | | |
git add README.md | |
git commit -am "updating README.md" || true | |
git push --force origin HEAD:$GITHUB_REF || true |