Skip to content

Commit

Permalink
Use Glue action
Browse files Browse the repository at this point in the history
  • Loading branch information
Starttoaster authored Apr 19, 2024
1 parent 803d1ea commit e11625c
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,18 @@ jobs:
$RELEASE_TAG \
artifacts/installer-chia-exporter*/*.deb
- uses: Chia-Network/actions/github/jwt@main
- uses: Chia-Network/actions/github/glue@main
if: env.FULL_RELEASE == 'true'
with:
json_data: '{"release_version":"${{ env.RELEASE_TAG }}"}'
glue_url: ${{ secrets.GLUE_API_URL }}
glue_project: "chia-exporter"
glue_path: "${{ github.sha }}/start"

- name: Trigger apt repo update
- uses: Chia-Network/actions/github/glue@main
if: env.FULL_RELEASE == 'true'
run: |
curl -s -XPOST -H "Authorization: Bearer ${{ env.JWT_TOKEN }}" --data '{"release_version":"${{ env.RELEASE_TAG }}"}' ${{ secrets.GLUE_API_URL }}/api/v1/chia-exporter/${{ github.sha }}/start
curl -s -XPOST -H "Authorization: Bearer ${{ env.JWT_TOKEN }}" --data '{"release_version":"${{ env.RELEASE_TAG }}"}' ${{ secrets.GLUE_API_URL }}/api/v1/chia-exporter/${{ github.sha }}/success/deploy
with:
json_data: '{"release_version":"${{ env.RELEASE_TAG }}"}'
glue_url: ${{ secrets.GLUE_API_URL }}
glue_project: "chia-exporter"
glue_path: "${{ github.sha }}/success/deploy"

0 comments on commit e11625c

Please sign in to comment.