1. try #1
@@ -235,21 +235,21 @@ jobs:
|
|||||||
RAW_COMMIT_MSG="${{ gitea.event.head_commit.message }}"
|
RAW_COMMIT_MSG="${{ gitea.event.head_commit.message }}"
|
||||||
COMMIT_MSG=$(echo "$RAW_COMMIT_MSG" | sed 's/\[skip ci\]//g' | tr -d '\r\n' | xargs)
|
COMMIT_MSG=$(echo "$RAW_COMMIT_MSG" | sed 's/\[skip ci\]//g' | tr -d '\r\n' | xargs)
|
||||||
|
|
||||||
TOKEN="${{ secrets.RUNNER_TOKEN }}"
|
# Lokale Templates an die vom Skript erwartete Stelle kopieren
|
||||||
curl -sSLf -H "Authorization: token $TOKEN" \
|
if [ -f ".gitea/docker-compose.template" ]; then
|
||||||
"https://git.pi-farm.de/pi-farm/templates/raw/branch/main/README.template" \
|
cp .gitea/docker-compose.template docker-compose.template
|
||||||
-o README.template || echo "Warnung: README Template konnte nicht geladen werden"
|
elif [ -f "docker-compose.template" ]; then
|
||||||
|
echo "Using local docker-compose.template"
|
||||||
|
else
|
||||||
|
echo "❌ FEHLER: docker-compose.template nicht gefunden!"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
curl -sSLf -H "Authorization: token $TOKEN" \
|
if [ -f ".gitea/README.template" ]; then
|
||||||
"https://git.pi-farm.de/pi-farm/templates/raw/branch/main/docker-compose.template" \
|
cp .gitea/README.template README.template
|
||||||
-o docker-compose.template || echo "Warnung: Compose Template konnte nicht geladen werden"
|
elif [ -f "README.template" ]; then
|
||||||
|
echo "Using local README.template"
|
||||||
for t_file in README.template docker-compose.template; do
|
fi
|
||||||
if [ -f "$t_file" ] && grep -qi "<!DOCTYPE html>" "$t_file"; then
|
|
||||||
echo "❌ FEHLER: $t_file ist eine HTML-Loginseite! Download verworfen."
|
|
||||||
rm -f "$t_file"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
NEW_ROW="| **$BUILD_TAG** | $CURRENT_TIME | $COMMIT_MSG ✅ |"
|
NEW_ROW="| **$BUILD_TAG** | $CURRENT_TIME | $COMMIT_MSG ✅ |"
|
||||||
if [ -f "VERSION.history" ]; then
|
if [ -f "VERSION.history" ]; then
|
||||||
|
|||||||
Reference in new issue
Block a user