AUTO DATA SCRAPER #55022
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: AUTO DATA SCRAPER | |
on: | |
schedule: | |
- cron: '*/5 * * * *' # Runs every 5 minutes | |
workflow_dispatch: # Allows you to manually trigger the workflow | |
jobs: | |
scrape: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18.x' | |
- name: Install dependencies | |
run: npm install | |
- name: Fetch Data and Update models.json | |
run: | | |
node allpages.js | |
git config --global user.email "[email protected]" | |
git config --global user.name "codermert" | |
git add models.json | |
git diff --quiet && git diff --staged --quiet || (git commit -m "🕰 Otomatik Veri Güncelleme » @codermert" && git push) |