Testing CI #1
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: Crawl upon new requests | |
on: | |
issues: | |
types: [opened] | |
jobs: | |
crawl-and-commit: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
- name: Run Crawler | |
run: | | |
python3 storemap.py | |
- name: Commit | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
git config --global user.email "github-actions[bot]@users.noreply.github.com" | |
git config --global user.name "github-actions[bot]" | |
git add ./json/ | |
git commit -m "Auto update $(date '+%Y-%m-%d %H:%M:%S')" || echo "No changes?" | |
git push | |