.gitea/workflows/release.yml aktualisiert
Some checks failed
Release Plugin / release (push) Failing after 5s
Some checks failed
Release Plugin / release (push) Failing after 5s
This commit is contained in:
@@ -211,17 +211,15 @@ jobs:
|
|||||||
|
|
||||||
- name: Dispatch to Repository
|
- name: Dispatch to Repository
|
||||||
run: |
|
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 \
|
curl -s -X POST \
|
||||||
-H "Authorization: token ${{ secrets.RELEASE_TOKEN }}" \
|
-H "Authorization: token ${{ secrets.RELEASE_TOKEN }}" \
|
||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
"https://${{ vars.RELEASE_URL }}/api/v1/repos/${{ github.repository_owner }}/Repository/dispatches" \
|
"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