-
Notifications
You must be signed in to change notification settings - Fork 23
37 lines (32 loc) · 974 Bytes
/
schedule.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
name: schedule
on:
schedule:
- cron: "*/15 * * * *"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Go 1.18
uses: actions/setup-go@v3
with:
go-version: 1.18
id: go
- name: Run search
env:
# barkToken: ${{secrets.BARK_TOKEN}}
feishuToken: ${{secrets.FEISHU_TOKEN}}
run: |
git config --local user.email "[email protected]"
git config --local user.name "adminlove520"
git remote set-url origin https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}
git pull --rebase
go build search.go utils.go
./search
rm search
git add .
git commit -m "Auto Update `date --rfc-3339=seconds`"
git push -f