From dac58bc1a92af91bb515376ff06ceecb2db68da0 Mon Sep 17 00:00:00 2001 From: Starttoaster Date: Tue, 24 Sep 2024 09:03:35 -0700 Subject: [PATCH] Use GitHub Glue Action instead of curl --- .github/workflows/build.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index fecba8e2..7dd6813f 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -301,10 +301,10 @@ jobs: cadt-linux-x64-deb/*.deb cadt-linux-arm64-deb/*.deb - - name: Gets JWT Token from GitHub - uses: Chia-Network/actions/github/jwt@main - - name: Trigger apt repo update - run: | - curl -s -XPOST -H "Authorization: Bearer ${{ env.JWT_TOKEN }}" --data '{"cadt_repo":"cadt","release_version":"${{ steps.tag-name.outputs.TAGNAME }}"}' ${{ secrets.GLUE_API_URL }}/api/v1/cadt/${{ github.sha }}/start - curl -s -XPOST -H "Authorization: Bearer ${{ env.JWT_TOKEN }}" --data '{"cadt_repo":"cadt","release_version":"${{ steps.tag-name.outputs.TAGNAME }}"}' ${{ secrets.GLUE_API_URL }}/api/v1/cadt/${{ github.sha }}/success/deploy + uses: Chia-Network/actions/github/glue@main + with: + json_data: '{"cadt_repo":"cadt","release_version":"${{ steps.tag-name.outputs.TAGNAME }}"}' + glue_url: ${{ secrets.GLUE_API_URL }} + glue_project: "cadt" + glue_path: "trigger"