Files
q-blog/scripts/dev/ci-smoke-commit.sh
2025-08-16 23:31:26 -04:00

17 lines
457 B
Bash
Executable File
Raw Permalink 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.
#!/usr/bin/env bash
# Tiny CI trigger helper — appends a timestamp to docs/RELEASING.md and pushes.
set -euo pipefail
BR="${1:-update}"
FILE="docs/RELEASING.md"
if ! git rev-parse --is-inside-work-tree >/dev/null 2>&1; then
echo "Not inside a git repo"; exit 1
fi
git checkout "$BR"
echo "$(date -u +'%Y-%m-%dT%H:%M:%SZ') CI smoke" >> "$FILE"
git add "$FILE"
git commit -m "chore(ci): smoke trigger"
git push -u origin "$BR"
echo "Pushed to $BR."