Skip to content

Auto-generate and upload routes #5137

Auto-generate and upload routes

Auto-generate and upload routes #5137

Workflow file for this run

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