This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user