Skip to content

Commit 34248a9

Browse files
mg-twentyonethunderbiscuit
authored andcommitted
ci: add trigger event for bdk-python library
1 parent 8c45a12 commit 34248a9

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/trigger-external-bindings.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,24 @@ jobs:
3939
else
4040
echo "(empty)"
4141
fi
42+
43+
# Trigger trigger-bdk-python-test workflow in bdk-python repository
44+
- name: Trigger tests in bdk-python repository
45+
env:
46+
BDK_PYTHON_ACCESS_TOKEN: ${{ secrets.BDK_PYTHON_ACCESS_TOKEN }}
47+
run: |
48+
curl --silent --show-error \
49+
--output /tmp/resp_bdk-python.txt \
50+
--write-out "HTTP Status: %{http_code}\n" \
51+
--request POST \
52+
--header "Accept: application/vnd.github+json" \
53+
--header "Content-Type: application/json" \
54+
--header "Authorization: Bearer $BDK_PYTHON_ACCESS_TOKEN" \
55+
--data '{"event_type":"trigger-bdk-python-test"}' \
56+
https://api.github.com/repos/bitcoindevkit/bdk-python/dispatches
57+
echo "Response body:"
58+
if [ -s /tmp/resp_bdk-python.txt ]; then
59+
jq . /tmp/resp_bdk-python.txt || cat /tmp/resp_bdk-python.txt
60+
else
61+
echo "(empty)"
62+
fi

0 commit comments

Comments
 (0)