metadata.txt im Repo ändern
Some checks failed
Release Plugin / release (push) Failing after 6s

This commit is contained in:
Michael Otto
2026-03-16 14:23:20 +01:00
parent 8289269881
commit ed46846d4e

View File

@@ -152,6 +152,7 @@ jobs:
--exclude='.gitea' \ --exclude='.gitea' \
--exclude='.plugin' \ --exclude='.plugin' \
--exclude='dist' \ --exclude='dist' \
--exclude='plugin.cfg' \
./ dist/${ZIP_FOLDER}/ ./ dist/${ZIP_FOLDER}/
cd dist cd dist
@@ -286,3 +287,35 @@ jobs:
-H "Content-Type: application/json" \ -H "Content-Type: application/json" \
-d "$JSON" \ -d "$JSON" \
"https://${{ vars.RELEASE_URL }}/api/v1/repos/${OWNER}/Repository/actions/workflows/${WORKFLOW}/dispatches" "https://${{ vars.RELEASE_URL }}/api/v1/repos/${OWNER}/Repository/actions/workflows/${WORKFLOW}/dispatches"
- name: metadata.txt ins Repo committen
run: |
cd repo
TAG="${{ github.ref_name }}"
VERSION="${{ steps.releaseinfo.outputs.version }}"
# Branch aus Tag ableiten
case "$TAG" in
*-unstable*)
BRANCH="unstable"
;;
*-testing*)
BRANCH="testing"
;;
*)
BRANCH="main"
;;
esac
# Branch checkouten
git checkout "$BRANCH"
# Falls es Änderungen gibt, commit und push
if git diff --quiet metadata.txt; then
echo "Keine Änderungen an metadata.txt"
else
git add metadata.txt
git commit -m "Update version to $VERSION"
git push origin "$BRANCH"
fi