Skip to content

Sync Rule Sources

Sync Rule Sources #9

Workflow file for this run

name: Sync Rule Sources
on:
schedule:
- cron: "0 */6 * * *"
workflow_dispatch:
permissions:
contents: write
concurrency:
group: sync-sources
cancel-in-progress: true
jobs:
sync:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Sync atlas-project rule
run: |
curl -sfL \
"https://raw.githubusercontent.com/UserGeneratedLLC/rojo/refs/heads/master/.cursor/rules/atlas-project.mdc" \
-o atlas-project.mdc
- name: Commit and push
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add -A
if git diff --staged --quiet; then
echo "No changes to commit"
else
git commit -m "sync: update rule sources ($(date -u '+%Y-%m-%d %H:%M UTC'))"
git push
fi