rommapp_docs/push_wiki.sh
2025-02-06 19:52:28 -05:00

17 lines
428 B
Bash
Executable File

#!/bin/bash
# Navigate to the /romm.wiki directory
cd "$(dirname "$0")/romm.wiki" || exit 1
# Check if the origin remote exists, if not add it
git remote | grep -q "^origin$" || git remote add origin git@github.com:rommapp/romm.wiki.git
# Add all files to git
git add .
# Commit changes with a timestamped message
git commit -m "Auto-commit: $(date '+%Y-%m-%d %H:%M:%S')"
# Push to the master branch
git push origin master