Skip to content

Commit 68c348f

Browse files
committed
feat: Create trigger workflow trigger for bdk-jvm
1 parent 4049586 commit 68c348f

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Trigger External Bindings Workflow
2+
on:
3+
workflow_dispatch:
4+
push:
5+
branches:
6+
- master
7+
paths:
8+
- 'bdk-ffi/**'
9+
10+
permissions: {}
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-24.04
15+
steps:
16+
#Trigger bdk-jvm-test in bdk-jvm repository
17+
- name: Trigger bdk-jvm-test in bdk-jvm repository
18+
if: ${{ github.ref_name == 'master' }}
19+
run: |
20+
response=$(curl -X POST \
21+
-H "Accept: application/vnd.github+json" \
22+
-H "Authorization: token ${{ secrets.BDK_JVM_ACCESS_TOKEN }}" \
23+
https://api.github.com/repos/bitcoindevkit/bdk-jvm/dispatches \
24+
-d '{"event_type":"trigger-bdk-jvm-tests"}')
25+
echo "Response: $response"
26+
echo "HTTP Status Code: $(echo $response | jq -r '.status')"
27+
echo "Response Body: $(echo $response | jq -r '.body')"

0 commit comments

Comments
 (0)