Files
winnow/build.sh
T

21 lines
481 B
Bash
Executable File
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/bin/bash
set -e
# --- Configuration ---
COMMIT_MSG="automated update: $(date '+%Y-%m-%d %H:%M:%S')"
# --- Git Sync ---
echo "💾 Committing and pushing changes to GitHub..."
git add .
# Only proceed if there are actual changes to commit
if ! git diff-index --quiet HEAD --; then
git commit -m "$COMMIT_MSG"
git push
echo "✅ Changes pushed. GitHub Actions will now build and deploy the image."
else
echo "ℹ️ No changes detected; nothing to push."
fi