From ead42ae7b43349f3b06808f8b7ad8efdb73912c2 Mon Sep 17 00:00:00 2001 From: rob thijssen Date: Fri, 24 Apr 2026 11:20:06 +0300 Subject: [PATCH] fix(ci): use full ref format and Content-Type header for dispatch 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) --- .gitea/workflows/poll-upstream.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/poll-upstream.yml b/.gitea/workflows/poll-upstream.yml index 6dcdb9b..7e032b2 100644 --- a/.gitea/workflows/poll-upstream.yml +++ b/.gitea/workflows/poll-upstream.yml @@ -50,6 +50,6 @@ jobs: curl --silent --show-error --location \ --request POST \ --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" \ - --data "{\"ref\":\"main\",\"inputs\":{\"tag\":\"${{ steps.upstream.outputs.tag }}\"}}" + --data "{\"ref\":\"refs/heads/main\",\"inputs\":{\"tag\":\"${{ steps.upstream.outputs.tag }}\"}}"