3
0

Fehlerbehebung

This commit is contained in:
Michael Otto
2026-03-03 13:45:06 +01:00
parent ea776a23ca
commit 801ff7e373
2 changed files with 10 additions and 6 deletions

View File

@@ -74,10 +74,10 @@ jobs:
run: |
cd repo
FILE="${{ steps.xmlfile.outputs.file }}"
PLUGIN="${{ steps.payload.outputs.plugin }}"
NAME="${{ steps.payload.outputs.name }}"
# Entfernt den kompletten Plugin-Block
sed -i "/<plugin name=\"${PLUGIN//\//\\/}\"/,/<\/plugin>/d" "$FILE"
sed -i "/<plugin name=\"${NAME//\//\\/}\"/,/<\/plugin>/d" "$FILE"
- name: Template anwenden und neue XML erzeugen
run: |
@@ -110,7 +110,7 @@ jobs:
# Neue Datei erzeugen
{
# Alles vor </plugins>
sed '/<\/plugins>/q' "$FILE"
sed '/<\/plugins>/d' "$FILE"
# Neuen Eintrag einfügen
printf "%s\n" "$ENTRY"