mirror of
https://github.com/itdoginfo/allow-domains.git
synced 2026-01-25 16:11:10 +03:00
Get subnets logic
This commit is contained in:
4
.github/workflows/create-lists.yml
vendored
4
.github/workflows/create-lists.yml
vendored
@@ -4,9 +4,9 @@ on:
|
||||
push:
|
||||
branches: [ "main" ]
|
||||
paths:
|
||||
- .github/**
|
||||
- .github/create-lists.yml
|
||||
- src/**
|
||||
- '*.py'
|
||||
- convert.py
|
||||
schedule:
|
||||
- cron: '29 */8 * * *'
|
||||
|
||||
|
||||
33
.github/workflows/create-subnets.yml
vendored
Normal file
33
.github/workflows/create-subnets.yml
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
name: Create subnets
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ "subnets" ]
|
||||
paths:
|
||||
- .github/create-subnets.yml
|
||||
- get-subnets.py
|
||||
schedule:
|
||||
- cron: '15 7 * * 1'
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
jobs:
|
||||
generate:
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- uses: actions/checkout@v4.1.7
|
||||
- name: Generate subnets
|
||||
uses: actions/setup-python@v5.1.0
|
||||
with:
|
||||
python-version: '3.10'
|
||||
- run: |
|
||||
python get-subnets.py
|
||||
- name: Push subnets
|
||||
uses: EndBug/add-and-commit@v9.1.4
|
||||
with:
|
||||
add: 'Subnets'
|
||||
author_name: GitHub Action
|
||||
author_email: githubaction@githubaction.com
|
||||
message: 'Update subnet'
|
||||
push: true
|
||||
Reference in New Issue
Block a user