powertux/bin/gitup
2024-03-20 12:59:11 +01:00

17 lines
377 B
Bash
Executable File

#!/bin/bash
echo $1
cd $(pwd)
echo "Adding everything to the commit..."
git add .
git commit -a -m "$1"
echo "Upgrading and executing trunk..."
trunk upgrade || echo "trunk upgrade failed"
trunk check || echo "trunk check failed"
trunk fmt || echo "trunk fmt failed"
echo "Final commit (if any)..."
git commit -a -m "Post trunk commit"
echo "Pushing..."
git push
echo "Done!"