fix(ci): use full ref format and Content-Type header for dispatch
All checks were successful
poll-upstream / check (push) Successful in 1s

Gitea API requires refs/heads/main (not just main) and
Content-Type: application/json for the dispatch endpoint.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-24 11:20:06 +03:00
parent 09ca33e0b6
commit ead42ae7b4

View File

@@ -50,6 +50,6 @@ jobs:
curl --silent --show-error --location \ curl --silent --show-error --location \
--request POST \ --request POST \
--header "Authorization: token ${{ secrets.DISPATCH_TOKEN }}" \ --header "Authorization: token ${{ secrets.DISPATCH_TOKEN }}" \
--header 'Accept: application/json' \ --header 'Content-Type: application/json' \
--url "${{ github.server_url }}/api/v1/repos/${{ github.repository }}/actions/workflows/build-release.yml/dispatches" \ --url "${{ github.server_url }}/api/v1/repos/${{ github.repository }}/actions/workflows/build-release.yml/dispatches" \
--data "{\"ref\":\"main\",\"inputs\":{\"tag\":\"${{ steps.upstream.outputs.tag }}\"}}" --data "{\"ref\":\"refs/heads/main\",\"inputs\":{\"tag\":\"${{ steps.upstream.outputs.tag }}\"}}"