refac: project

This commit is contained in:
2023-10-01 18:54:37 +02:00
parent 39d233b3d9
commit d6adb0e2e3
37 changed files with 1106 additions and 1146 deletions

View File

@ -0,0 +1,20 @@
#!/bin/bash
FLAGS=""
if [[ -n "${PLUGIN_DEPTH}" ]]; then
FLAGS="--depth=${PLUGIN_DEPTH}"
fi
if [ ! -d .git ]; then
git init
git remote add origin "${DRONE_REMOTE_URL}"
fi
set -e
set -x
git fetch "${FLAGS}" origin "+refs/heads/${DRONE_COMMIT_BRANCH}:"
git checkout "${DRONE_COMMIT_BRANCH}"
git fetch origin "${DRONE_COMMIT_REF}:"
git merge "${DRONE_COMMIT_SHA}"