Add backup files for TestVault and Vault notes
CI / lint (push) Failing after 4s
CI / test (push) Has been skipped
CI / build (push) Has been skipped
CI / security (push) Successful in 7s

This commit is contained in:
2026-06-02 12:24:14 -04:00
parent ce51ed18e4
commit 459bbe441d
40 changed files with 379 additions and 2 deletions
+22
View File
@@ -0,0 +1,22 @@
#!/bin/bash
# git-use-token.sh — Push to Gitea using token from .env
# Usage: ./git-use-token.sh [push args]
cd "$(dirname "$0")"
# Load token from .env
if [ -f .env ]; then
export $(grep -v '^#' .env | grep GITEA_TOKEN | xargs)
fi
if [ -z "$GITEA_TOKEN" ]; then
echo "❌ GITEA_TOKEN not found in .env"
exit 1
fi
# Set remote with token and push
git remote set-url origin "https://bruno:${GITEA_TOKEN}@git.dracodev.net/Projets/ObsiGate.git"
git push "$@"
# Restore clean remote URL
git remote set-url origin https://git.dracodev.net/Projets/ObsiGate.git