mirror of
https://github.com/egorovna-developments/rule-set.git
synced 2026-05-17 02:32:28 +07:00
Add GitHub Actions workflow for subnet updates
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
name: Update subnets
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
schedule:
|
||||
- cron: '0 0 * * 1'
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
jobs:
|
||||
linux-build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout sources
|
||||
uses: actions/checkout@v6
|
||||
- name: Setup Java
|
||||
uses: actions/setup-java@v5
|
||||
with:
|
||||
java-version: '17'
|
||||
distribution: 'oracle'
|
||||
java-package: 'jdk'
|
||||
architecture: 'x64'
|
||||
- run: |
|
||||
java -jar ip-ranges.jar
|
||||
- name: Push subnets
|
||||
uses: EndBug/add-and-commit@v9
|
||||
with:
|
||||
message: 'Update subnets'
|
||||
Reference in New Issue
Block a user