forked from AG_QGIS/Plugin_Test_Action
.gitea/workflows/release.yml aktualisiert
This commit is contained in:
@@ -211,17 +211,15 @@ jobs:
|
||||
|
||||
- name: Dispatch to Repository
|
||||
run: |
|
||||
XML_BLOCK="${{ steps.xmlblock.outputs.block }}"
|
||||
|
||||
JSON=$(jq -n \
|
||||
--arg type "plugin-released" \
|
||||
--arg plugin "${{ steps.cfg.outputs.name }}" \
|
||||
--arg channel "${{ steps.info.outputs.channel }}" \
|
||||
--arg xml "$XML_BLOCK" \
|
||||
'{type:$type,payload:{plugin:$plugin,channel:$channel,xml_block:$xml}}')
|
||||
|
||||
curl -s -X POST \
|
||||
-H "Authorization: token ${{ secrets.RELEASE_TOKEN }}" \
|
||||
-H "Content-Type: application/json" \
|
||||
"https://${{ vars.RELEASE_URL }}/api/v1/repos/${{ github.repository_owner }}/Repository/dispatches" \
|
||||
-d "$JSON"
|
||||
-d "{
|
||||
\"type\": \"plugin-released\",
|
||||
\"payload\": {
|
||||
\"plugin\": \"${{ steps.cfg.outputs.name }}\",
|
||||
\"channel\": \"${{ steps.info.outputs.channel }}\",
|
||||
\"xml_block\": \"${{ steps.xmlblock.outputs.block }}\"
|
||||
}
|
||||
}"
|
||||
|
||||
Reference in New Issue
Block a user