forked from dndx/nchnroutes
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (38 loc) · 937 Bytes
/
autoupdate.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
43
44
name: Auto-generate and upload routes
on:
schedule:
- cron: "0 */2 * * *" # Run every 2 hour at UTC
watch:
types: [started]
jobs:
build:
runs-on: ubuntu-20.04
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Build nchnroutes
env:
PASS_IPS: ${{secrets.PASS_IPS}}
run: |
make
- name: upload to release
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: latest
files: |
./routes4.conf
./routes6.conf
del_runs:
runs-on: ubuntu-latest
permissions:
actions: write
steps:
- name: Delete workflow runs
uses: Mattraks/delete-workflow-runs@v2
with:
token: ${{ github.token }}
repository: ${{ github.repository }}
retain_days: 1
keep_minimum_runs: 6