Test Push mit Token
This commit is contained in:
@@ -103,9 +103,22 @@ jobs:
|
|||||||
- name: Commit & Push
|
- name: Commit & Push
|
||||||
run: |
|
run: |
|
||||||
cd repo
|
cd repo
|
||||||
|
|
||||||
git config user.name "Release Bot"
|
git config user.name "Release Bot"
|
||||||
git config user.email "release-bot@noreply.localhost"
|
git config user.email "release-bot@noreply.localhost"
|
||||||
|
|
||||||
git add .
|
git add .
|
||||||
|
|
||||||
|
# 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 }})"
|
git commit -m "Update ${{ steps.payload.outputs.plugin }} ${{ steps.payload.outputs.version }} (${{ steps.payload.outputs.channel }})"
|
||||||
git push
|
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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user