Skip to content

Scrape and Build

Scrape and Build #200

Workflow file for this run

name: "Scrape and Build"
on:
push:
branches:
- master
workflow_dispatch:
schedule:
- cron: "0 12 * * *"
jobs:
build_scrape:
name: "Build and Scrape"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: "actions/setup-go@v4"
with:
go-version-file: "./go.mod"
- name: Build
run: go build
- name: Scrape
run: ./rulesraker scrape
- name: Parse
run: ./rulesraker parse
- name: Commit
run: |
git config --global user.name 'Maximilian Remming'
git config --global user.email '[email protected]'
[ $(git status --porcelain=1 | wc -l) -eq 0 ] && exit 0
git commit -am "Update rules"
git push