scraper #952
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: scraper | |
on: | |
schedule: | |
- cron: '0 0 * * *' | |
jobs: | |
scrape: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
token: ${{secrets.PAT}} | |
- name: Get current date | |
id: date | |
run: echo "::set-output name=date::$(date +'%Y-%m-%d')" | |
- name: Setup Node.js environment | |
uses: actions/[email protected] | |
- name: Create env file | |
run: | | |
touch .env | |
echo PUBLIC_APIS_README=${{ secrets.PUBLIC_APIS_README }} >> .env | |
- run: npm ci | |
- run: npm run scraper | |
- uses: stefanzweifel/[email protected] | |
with: | |
commit_message: "chore(data): update at ${{ steps.date.outputs.date }}" | |
branch: main | |
env: | |
GITHUB_TOKEN: ${{ secrets.PAT }} |