3
0

Test Push mit Token

This commit is contained in:
Michael Otto
2026-03-03 10:36:53 +01:00
parent becc9547df
commit a369b83b9a

View File

@@ -103,9 +103,22 @@ jobs:
- name: Commit & Push
run: |
cd repo
git config user.name "Release Bot"
git config user.email "release-bot@noreply.localhost"
git add .
git commit -m "Update ${{ steps.payload.outputs.plugin }} ${{ steps.payload.outputs.version }} (${{ steps.payload.outputs.channel }})"
git push
# Commit nur, wenn Änderungen vorhanden sind
if ! git diff --cached --quiet; then
git commit -m "Update ${{ steps.payload.outputs.plugin }} ${{ steps.payload.outputs.version }} (${{ steps.payload.outputs.channel }})"
else
echo "Keine Änderungen kein Commit notwendig."
exit 0
fi
# Token in die URL einbauen
git remote set-url origin "https://${{ secrets.RELEASE_TOKEN }}:@entwicklung.flurneuordnung-sachsen.de/AG_QGIS/Repository.git"
git push origin feature/release