-
Notifications
You must be signed in to change notification settings - Fork 6
42 lines (39 loc) · 1.11 KB
/
action.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: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
schedule:
- cron: 0 */6 * * *
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: v0.0.1
- name: Install && Configuration
run: |
sudo apt-get -qq update
sudo apt-get -y -qq install wget
- name: Get GeoIP2 DBs
run: |
bash download.bash ASN ${{ secrets.APP_KEY }}
bash download.bash City ${{ secrets.APP_KEY }}
bash download.bash Country ${{ secrets.APP_KEY }}
- name: Commit files
env:
TZ: Asia/Shanghai
run: |
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add -A
git commit -m "Auto Sync `date -R` - [Skip GitHub Action]"
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}
force: true