ci(forgejo): Update workflows and gitignore structure

- Remove GitHub Actions workflow (using Forgejo now)
- Fix deploy_update_brew_lists.yml: remove redundant git commit/push
- Update .gitignore: whitelist approach for clean repo root
- Ignore compiled binaries, auto-generated wrappers at root level
This commit is contained in:
Jeremie Fraeys 2026-03-29 15:57:04 -04:00
parent c86e645fa4
commit 45c2d60a04
No known key found for this signature in database
3 changed files with 80 additions and 34 deletions

View file

@ -0,0 +1,37 @@
---
name: Update Brew Lists
on:
schedule:
- cron: '0 2 */2 * *' # Every two days at 2 AM
workflow_dispatch: # Allow manual trigger from Forgejo UI
jobs:
update-brew-lists:
runs-on: self-hosted
steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
token: ${{ secrets.FORGEJO_TOKEN }}
- name: Set up Git
run: |
git config --global user.email "actions@jfraeys.com"
git config --global user.name "Forgejo Actions"
- name: Resolve profile
run: |
PROFILE_FILE="$HOME/.config/brew-profile"
if [[ -f "$PROFILE_FILE" ]]; then
echo "MACHINE_PROFILE=$(cat "$PROFILE_FILE")" >> "$GITHUB_ENV"
echo "Using saved profile: $(cat "$PROFILE_FILE")"
else
echo "MACHINE_PROFILE=laptop" >> "$GITHUB_ENV"
echo "No profile file found — defaulting to: laptop"
fi
- name: Run update-brew-lists
run: |
chmod +x scripts/update-brew-lists
./scripts/update-brew-lists --profile="$MACHINE_PROFILE"

View file

@ -1,22 +0,0 @@
---
name: Update Brew Lists
on:
schedule:
- cron: '0 2 */2 * *' # Run every two days at 2 AM
jobs:
update-brew-lists:
runs-on: self-hosted
steps:
- name: Set up Git
run: |
git config --global user.email "actions@jfraeys.com"
git config --global user.name "Forgejo Actions"
- name: Update update_brew_lists
run: |
git add scripts/update_brew_lists.sh
if ! git diff-index --quiet HEAD --; then
git commit -m "Update update_brew_lists"
git push
else
echo "No changes to update_brew_lists, skipping commit and push."
fi

55
.gitignore vendored
View file

@ -1,19 +1,50 @@
*.log
__pycache__*
# Ignore everything in root except explicitly tracked files/dirs
*
pip*
poertry
# But track these directories
!.forgejo/
!.github/
!.brew_lists/
!docs/
!scripts/
!src/
# Track these files
!.gitignore
!.gitmodules
!README.md
!hugo.toml
!mycronjobs.txt
# Within scripts/, track everything
!scripts/**
# Within docs/, track everything
!docs/**
# Within src/, track everything (source code)
!src/**
# Within .forgejo/, track everything
!.forgejo/**
# Within .brew_lists/, track everything except .new.txt backups
!.brew_lists/**
.brew_lists/*.new.txt
# Zig build artifacts
# But ignore build artifacts everywhere
*.log
__pycache__/
*.pyc
*.o
*.exe
*.bak
.DS_Store
# Zig build artifacts (anywhere)
.zig-cache/
zig-out/
# Other build artifacts
*.o
*.exe
manwhere-debug
*.bak
.DS_Store
# Go build artifacts
*.test
*.out