Skip to content

Commit

Permalink
teste webhooks proxy 03
Browse files Browse the repository at this point in the history
  • Loading branch information
gitbarnabedikartola committed Nov 15, 2024
1 parent a3f369b commit 7b1624e
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions .github/workflows/build-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,18 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Send Hooks BigLinux Build Package
shell: bash
run: |
if [ -z "$(grep biglinux-package-template pkgbuild/PKGBUILD)" ];then
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: Send Hooks BigLinux Build Package
# shell: bash
# run: |
# if [ -z "$(grep biglinux-package-template pkgbuild/PKGBUILD)" ];then
# 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

0 comments on commit 7b1624e

Please sign in to comment.