generated from litingyes/nextjs-app-template
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (36 loc) · 1007 Bytes
/
crawler.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Pull and commit data
on:
workflow_dispatch:
schedule:
- cron: 0 8 * * *
jobs:
crawler:
name: Crawler
runs-on: ubuntu-latest
env:
AZURE_SUBSCRIPTION_KEY: ${{secrets.AZURE_SUBSCRIPTION_KEY}}
steps:
- uses: actions/checkout@v4
- run: pipx install poetry
- uses: actions/setup-python@v5
with:
python-version: '3.11'
cache: poetry
- run: poetry install
- run: poetry run python crawler
- uses: pnpm/action-setup@v4
with:
version: 9
- uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
- run: pnpm install
- run: pnpm lint-staged
- name: Commit and push changes
run: |
git config --global user.email "luz.liting@gmail.com"
git config --global user.name "litingyes"
git add .
git commit -m "chore(github-actions): update data at $(date +'%Y-%m-%d)"
git push origin main