test workflow update

This commit is contained in:
2026-03-13 12:33:07 +00:00
parent 20affab949
commit 9f1a71b3b1
7 changed files with 232 additions and 288 deletions
+20
View File
@@ -0,0 +1,20 @@
#!/usr/bin/env bash
set -euo pipefail
: "${BRANCH:?BRANCH is required}"
: "${FILE:?FILE is required}"
: "${COMMIT_MESSAGE:?COMMIT_MESSAGE is required}"
git config user.name "gitea actions"
git config user.email "actions@localhost"
git checkout -B "$BRANCH"
git add "$FILE"
if git diff --cached --quiet; then
echo "No staged changes for ${FILE}; skipping commit"
exit 0
fi
git commit -m "$COMMIT_MESSAGE"
git push --force origin "$BRANCH"