File size: 672 Bytes
7269ed4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/data/data/com.termux/files/usr/bin/bash

# Load your GitHub token from your vault
source ~/QGTNL/secrets/.env

REPO_DIR=~/QGTNL
cd $REPO_DIR

echo "=== QGTNL → GITHUB (Oppo- repo) ==="

# Configure Git identity (only needed once)
git config user.name "DJ-Goana-Coding"
git config user.email "your-email@example.com"

# Add all changed files
git add -A

# Commit if there are changes
if ! git diff --cached --quiet; then
    git commit -m "Auto-sync from QGTNL"
else
    echo "No changes to commit."
    exit 0
fi

# Push to the correct GitHub repo (ONE 'n' + dash at end)
git push https://$GITHUB_TOKEN@github.com/DJ-Goana-Coding/Oppo-.git main

echo "=== DONE ==="