Skip to content

Commit

Permalink
Use Glue Action for requests (#203)
Browse files Browse the repository at this point in the history
* Use Glue Action for requests

* Change hw-build workflow to use glue trigger
  • Loading branch information
Starttoaster authored Sep 21, 2024
1 parent 8fc88c9 commit 56e2f89
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/build-c-libraries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
9 changes: 6 additions & 3 deletions .github/workflows/hw-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 56e2f89

Please sign in to comment.