From d9f457029bdc94c2266c6cd92cb271ca74b60b51 Mon Sep 17 00:00:00 2001 From: Cian Hughes Date: Wed, 22 Jan 2025 16:08:50 +0000 Subject: [PATCH] Update trigger_rebuild.yaml --- .github/workflows/trigger_rebuild.yaml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/trigger_rebuild.yaml b/.github/workflows/trigger_rebuild.yaml index 65cb8b9..195e816 100644 --- a/.github/workflows/trigger_rebuild.yaml +++ b/.github/workflows/trigger_rebuild.yaml @@ -11,11 +11,9 @@ jobs: steps: - name: Trigger rebuild run: | - curl -L \ - -X POST \ + gh api \ + --method POST \ -H "Accept: application/vnd.github+json" \ - -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \ - -H "Content-Type: application/json" \ -H "X-GitHub-Api-Version: 2022-11-28" \ - https://api.github.com/repos/Cian-H/my_nvim/dispatches \ - -d '{"event_type":"rebuild-container"}' + /repos/CianH/my_nvim/dispatches \ + -f "event_type=on-demand-test" -F "client_payload[unit]=false" -F "client_payload[integration]=true"