forked from AG_QGIS/Plugin_Test_Action
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
44aae815f5 | ||
|
|
af43bfeab9 |
@@ -222,22 +222,25 @@ jobs:
|
|||||||
OWNER="AG_QGIS"
|
OWNER="AG_QGIS"
|
||||||
WORKFLOW="update.yml"
|
WORKFLOW="update.yml"
|
||||||
|
|
||||||
# JSON als STRING escapen
|
# payload.json in Base64 umwandeln
|
||||||
PAYLOAD=$(jq -Rs . < repo/payload.json)
|
PAYLOAD_B64=$(base64 -w0 repo/payload.json)
|
||||||
|
|
||||||
|
# JSON für Gitea bauen
|
||||||
|
JSON="{\"ref\":\"feature/release\",\"inputs\":{\"payload\":\"$PAYLOAD_B64\"}}"
|
||||||
|
|
||||||
|
echo "Sende JSON:"
|
||||||
|
echo "$JSON"
|
||||||
|
|
||||||
curl -X POST \
|
curl -X POST \
|
||||||
-H "Authorization: token ${{ secrets.RELEASE_TOKEN }}" \
|
-H "Authorization: token ${{ secrets.RELEASE_TOKEN }}" \
|
||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
-d "{
|
-d "$JSON" \
|
||||||
\"ref\": \"feature/release\",
|
|
||||||
\"inputs\": {
|
|
||||||
\"client_payload\": $PAYLOAD
|
|
||||||
}
|
|
||||||
}" \
|
|
||||||
"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: Repository aktualisieren
|
# - name: Repository aktualisieren
|
||||||
# run: |
|
# run: |
|
||||||
# OWNER="AG_QGIS" # z. B. dein Benutzername oder deine Organisation
|
# OWNER="AG_QGIS" # z. B. dein Benutzername oder deine Organisation
|
||||||
|
|||||||
Reference in New Issue
Block a user