forked from AG_QGIS/Plugin_Test_Action
Release v39
This commit is contained in:
@@ -219,15 +219,20 @@ jobs:
|
|||||||
- name: Repository aktualisieren
|
- name: Repository aktualisieren
|
||||||
run: |
|
run: |
|
||||||
OWNER="AG_QGIS"
|
OWNER="AG_QGIS"
|
||||||
|
WORKFLOW="update.yml"
|
||||||
|
|
||||||
|
# payload.json in Base64 umwandeln
|
||||||
PAYLOAD_B64=$(base64 -w0 repo/payload.json)
|
PAYLOAD_B64=$(base64 -w0 repo/payload.json)
|
||||||
|
|
||||||
JSON=$(jq -n --arg p "$PAYLOAD_B64" '{
|
# JSON für Gitea bauen
|
||||||
event_type: "update_plugin",
|
JSON="{\"ref\":\"feature/release\",\"inputs\":{\"payload\":\"$PAYLOAD_B64\"}}"
|
||||||
client_payload: { payload: $p }
|
|
||||||
}')
|
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 "$JSON" \
|
-d "$JSON" \
|
||||||
"https://${{ vars.RELEASE_URL }}/api/v1/repos/${OWNER}/Repository/actions/workflows/dispatches"
|
"https://${{ vars.RELEASE_URL }}/api/v1/repos/${OWNER}/Repository/actions/workflows/${WORKFLOW}/dispatches"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user