Skip to content

Sync Tap Packages

Sync Tap Packages #13

Workflow file for this run

name: Sync Tap Packages
on:
schedule:
- cron: '17 2 * * *'
workflow_dispatch:
permissions:
contents: write
concurrency:
group: sync-tap-packages
cancel-in-progress: true
jobs:
sync:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: '3.x'
- name: Sync formulas and casks
env:
GITHUB_TOKEN: ${{ github.token }}
run: python3 scripts/sync_packages.py
- name: Commit and push changes
run: |
if git diff --quiet; then
echo "No tap changes detected."
exit 0
fi
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add -A
git commit -m "chore: sync tap packages"
git push