'Generic Commit'
All checks were successful
Build-Test-Publish / build (linux/arm64) (push) Successful in 25s
Build-Test-Publish / build (linux/amd64) (push) Successful in 46s
Build-Test-Publish / test-install-from-scratch (linux/amd64) (push) Successful in 7s
Build-Test-Publish / test-install-from-scratch (linux/arm64) (push) Successful in 8s
All checks were successful
Build-Test-Publish / build (linux/arm64) (push) Successful in 25s
Build-Test-Publish / build (linux/amd64) (push) Successful in 46s
Build-Test-Publish / test-install-from-scratch (linux/amd64) (push) Successful in 7s
Build-Test-Publish / test-install-from-scratch (linux/arm64) (push) Successful in 8s
This commit is contained in:
parent
92319ea70e
commit
ce4d723b3b
18
gp/gp
Executable file
18
gp/gp
Executable file
@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
|
||||
# find top folder of the git repo from current directory
|
||||
|
||||
MYDIR=$(git rev-parse --show-toplevel)
|
||||
|
||||
if [ -z "$MYDIR" ]; then
|
||||
echo "Not in a git repository"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# do a git diff, and use AI to determine a good commit message.
|
||||
|
||||
# add all changes at $MYDIR level, commit with the message from AI, and push to origin.
|
||||
|
||||
git add .
|
||||
git commit -m "$(git diff --name-only | xargs -I{} sh -c 'echo "{}: "; git diff --color=always {} | head -n 1')"
|
||||
git push origin main
|
11
gp/publish.sh
Executable file
11
gp/publish.sh
Executable file
@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
#set projec to the folder this script is in.
|
||||
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
|
||||
PROJECT=$(basename "$SCRIPT_DIR")
|
||||
SOS_DIR="${SCRIPT_DIR}/../sos"
|
||||
|
||||
# run sos to upload sos
|
||||
"${SOS_DIR}/sos" upload "getbin.xyz" "${SCRIPT_DIR}/${PROJECT}" "${PROJECT}:latest"
|
Loading…
x
Reference in New Issue
Block a user