update #852
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 | |
on: | |
schedule: | |
# Run daily at 04:20 UTC. | |
- cron: '20 4 * * *' | |
jobs: | |
update: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
ref: ${{ github.head_ref }} | |
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} | |
- name: Update | |
run: | | |
./update.sh | |
git config user.name 'TibiaMaps.io lottery bot' | |
git config user.email '[email protected]' | |
date=$(date +'%Y-%m-%d') | |
git add data | |
git commit data -m "Add random numbers for date=${date}" || true | |
git push |