forked from Qortal/q-blog
15 lines
414 B
Bash
Executable File
15 lines
414 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
WORKFLOW1=".gitea/workflows/ci.yml"
|
|
WORKFLOW2=".gitea/workflows/ci-no-marketplace.yml"
|
|
|
|
echo "== Create/keep ${WORKFLOW1} (from kit) and remove ${WORKFLOW2} if present =="
|
|
if [ -f "${WORKFLOW2}" ]; then
|
|
git rm -f "${WORKFLOW2}" || true
|
|
fi
|
|
|
|
git add "${WORKFLOW1}" || true
|
|
git status --short
|
|
echo "Done. Commit with: git commit -m 'ci: unify to single self-hosted workflow'"
|