mirror of
https://seed.radicle.dev/rad:zwTxygwuz5LDGBq255RA2CbNGrz8.git
synced 2026-11-04 03:10:30 +08:00
This works around a limitation in the native CI adapter, which checks out the commit, but doesn't tell the CI run from which branch it came from. Signed-off-by: Lars Wirzenius <liw@liw.fi>
12 lines
302 B
Bash
12 lines
302 B
Bash
#!/bin/bash
|
|
|
|
set -xeuo pipefail
|
|
|
|
if [ "${RADICLE_CI_BROKER_WEBROOT:-unset}" != unset ]; then
|
|
echo web root set, publishing arch doc there
|
|
install -d -m 0755 "$RADICLE_CI_BROKER_WEBROOT"
|
|
install -m 0644 ./*.html "$RADICLE_CI_BROKER_WEBROOT"
|
|
else
|
|
echo web root is not set, not publishing arch doc
|
|
fi
|