#!/bin/bash echo "Removing .github directory from repository..." # Check if .github directory exists if [ -d ".github" ]; then echo ".github directory found, removing it..." git rm -rf .github/ git commit -m "Remove GitHub workflows - migrated to Gitea" echo ".github directory removed and committed" echo "Don't forget to run: git push" else echo ".github directory not found in current directory" fi # Check if it's already in .gitignore if grep -q "^\.github/" .gitignore; then echo ".github/ is already in .gitignore" else echo "Adding .github/ to .gitignore..." echo "" >> .gitignore echo "# Ignore GitHub workflows (using Gitea instead)" >> .gitignore echo ".github/" >> .gitignore git add .gitignore git commit -m "Add .github/ to .gitignore" echo "Added .github/ to .gitignore" fi echo "" echo "Next steps:" echo "1. Run: git push" echo "2. Make sure Node.js is installed on your Gitea runner host" echo "3. Test your pipeline by making a small commit"