Skip to content

Commit

Permalink
Add GitHub Actions workflow for automated rule updates
Browse files Browse the repository at this point in the history
  • Loading branch information
mnixry committed Feb 14, 2025
1 parent b011996 commit 942a4b4
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/updater.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Rule Updater

on:
schedule:
- cron: "0 0 * * *"
push:
branches:
- main
workflow_dispatch:

jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main

- uses: pnpm/action-setup@master
with:
version: 10
run_install: false

- uses: actions/setup-node@main
with:
node-version: 22
cache: "pnpm"

- name: Install dependencies
run: pnpm install

- name: Run updater
run: pnpm start

- uses: s0/git-publish-subdir-action@develop
env:
REPO: self
BRANCH: rules
FOLDER: ./result
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 942a4b4

Please sign in to comment.