Create subnets #33
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/[email protected] | |
- name: Generate subnets | |
uses: actions/[email protected] | |
with: | |
python-version: '3.10' | |
- run: | | |
python get-subnets.py | |
- name: Push subnets | |
uses: EndBug/[email protected] | |
with: | |
add: 'Subnets' | |
author_name: GitHub Action | |
author_email: [email protected] | |
message: 'Update subnet' | |
push: true |