From 56e2f89d10f06645c3e6030c6e7b82504b2bbf17 Mon Sep 17 00:00:00 2001 From: Starttoaster Date: Sat, 21 Sep 2024 12:58:39 -0700 Subject: [PATCH] Use Glue Action for requests (#203) * Use Glue Action for requests * Change hw-build workflow to use glue trigger --- .github/workflows/build-c-libraries.yml | 8 ++++++-- .github/workflows/hw-build.yml | 9 ++++++--- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build-c-libraries.yml b/.github/workflows/build-c-libraries.yml index d0767b34..015ed253 100644 --- a/.github/workflows/build-c-libraries.yml +++ b/.github/workflows/build-c-libraries.yml @@ -139,5 +139,9 @@ jobs: - name: Notify new build if: env.RELEASE == 'true' - run: | - curl -s -XPOST -H "Authorization: Bearer ${{ env.JWT_TOKEN }}" --data '{"release_version":"${{ env.RELEASE_TAG }}"}' ${{ secrets.GLUE_API_URL }}/api/v1/chiavdfc/trigger + uses: Chia-Network/actions/github/glue@main + with: + json_data: '{"release_version":"${{ env.RELEASE_TAG }}"}' + glue_url: ${{ secrets.GLUE_API_URL }} + glue_project: "chiavdfc" + glue_path: "trigger" diff --git a/.github/workflows/hw-build.yml b/.github/workflows/hw-build.yml index d3799afb..59588bab 100644 --- a/.github/workflows/hw-build.yml +++ b/.github/workflows/hw-build.yml @@ -108,6 +108,9 @@ jobs: - name: Trigger repo update if: env.RELEASE == 'true' - run: | - curl -s -XPOST -H "Authorization: Bearer ${{ env.JWT_TOKEN }}" --data '{"release_version":"${{ env.RELEASE_TAG }}"}' ${{ secrets.GLUE_API_URL }}/api/v1/chiavdf-hw/${{ env.RELEASE_TAG }}/start - curl -s -XPOST -H "Authorization: Bearer ${{ env.JWT_TOKEN }}" --data '{"release_version":"${{ env.RELEASE_TAG }}"}' ${{ secrets.GLUE_API_URL }}/api/v1/chiavdf-hw/${{ env.RELEASE_TAG }}/success/release_hw + uses: Chia-Network/actions/github/glue@main + with: + json_data: '{"release_version":"${{ env.RELEASE_TAG }}"}' + glue_url: ${{ secrets.GLUE_API_URL }} + glue_project: "chiavdf-hw" + glue_path: "trigger"