-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (38 loc) · 920 Bytes
/
juejin.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
39
40
41
42
name: JueJinEvents
on:
# schedule:
# - cron: "0 10 * * 5"
workflow_dispatch:
env:
TZ: Asia/Shanghai
jobs:
JueJinEvents:
runs-on: ubuntu-latest
steps:
- name: Show server date
run: date
- name: Checkout Repository
uses: actions/[email protected]
with:
sparse-checkout: |
JueJinEvent
sparse-checkout-cone-mode: false
- name: Setup Go environment
uses: actions/setup-go@v5
with:
go-version: '1.22.5'
- name: Build App
working-directory: ./JueJinEvent
run: go build -o app -ldflags "-w -s" main.go
- name: Check Dir
working-directory: ./JueJinEvent
run: /bin/ls -l
- name: Run spider get JueJinEvents\
working-directory: ./JueJinEvent
run: ./app
env:
Days: "30"
Aid: "2608"
COOKIE: ${{ secrets.COOKIE }}
TOKEN: ${{ secrets.X_SECSDK_CSRF_TOKEN }}
SECRET: ${{ secrets.SECRET}}