Skip to content

Commit

Permalink
teste webhooks proxy 04
Browse files Browse the repository at this point in the history
  • Loading branch information
gitbarnabedikartola committed Nov 15, 2024
1 parent 7b1624e commit 243cf0d
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions .github/workflows/build-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,17 @@ jobs:
# curl -X POST -H "Accept: application/json" -H "Authorization: token ${{ secrets.WEBHOOK_TOKEN }}" --data '{"event_type": "${{ github.repository }}", "client_payload": { "branch": "${{ github.ref_name }}", "url": "https://github.com/${{ github.repository }}"}}' https://api.github.com/repos/BigLinux-Package-Build/build-package/dispatches
# curl -X POST -H "Accept: application/json" -H "Authorization: token ${{ secrets.WEBHOOK_TOKEN }}" --data '{"event_type": "${{ github.repository }}", "client_payload": { "branch": "${{ github.ref_name }}", "url": "https://github.com/${{ github.repository }}"}}' https://api.github.com/repos/BigLinux-Package-Build/build-package-ARM/dispatches
# fi
# curl -X POST "https://nebulaapi.nimbusnetwork.dev/webhook" -H "Authorization: token ${{ secrets.WEBHOOK_TOKEN }}" -H "Content-Type: application/json" -d '{"event_type": "${{ github.repository }}", "branch": "${{ github.ref_name }}", "url": "https://github.com/${{ github.repository }}"}'

- name: Setup tmate session
uses: mxschmitt/action-tmate@v3
# if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled }}
# timeout-minutes: 60
# with:
# install-dependencies: false
# curl -X POST "https://nebulaapi.nimbusnetwork.dev/webhook" \
# -H "Authorization: token ${{ secrets.WEBHOOK_TOKEN }}" \
# -H "Content-Type: application/json" \
# -d '{
# "event_type": "${{ github.repository }}",
# "branch": "${{ github.ref_name }}",
# "url": "https://github.com/${{ github.repository }}"
# }'
- name: Invoke deployment hook
uses: distributhor/workflow-webhook@v3
with:
webhook_url: ${{ secrets.WEBHOOK_URL }}
webhook_secret: ${{ secrets.WEBHOOK_SECRET }}
data: '{ "event_type": "${{ github.repository }}", "branch": "${{ github.ref_name }}", "url": "https://github.com/${{ github.repository }}"}'

0 comments on commit 243cf0d

Please sign in to comment.