itg-allow-domains/.github/workflows/create-subnets.yml
2024-12-16 23:49:16 +03:00

33 lines
No EOL
700 B
YAML

name: Create subnets
on:
push:
branches: [ "main" ]
paths:
- .github/workflows/create-subnets.yml
- get-subnets.py
schedule:
- cron: '16 7 * * 1'
permissions:
contents: write
jobs:
generate-subnet:
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