Populate rankings #8800
This file contains hidden or 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: Populate rankings | |
| on: | |
| workflow_call: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: "* * * * *" | |
| jobs: | |
| genRank: | |
| environment: | |
| name: ${{ github.ref_name }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Get BTC MAP Rank1 | |
| id: getRank | |
| run: bash genRank.sh | |
| - name: Upload to git | |
| id: uploadGit | |
| run: | | |
| if [[ `git status --porcelain` ]]; then | |
| git config --global user.name "juancolchete" | |
| git config --global user.email "juancolchete@gmail.com" | |
| git add . | |
| git commit -m "chore: add title ${{github.event.head_commit.message}}" | |
| git push | |
| else | |
| echo "no changes to push" | |
| fi |