Skip to content

Commit 7ab13ad

Browse files
authored
Create python-app.yml
1 parent 064155c commit 7ab13ad

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/python-app.yml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: PR Event Listener
2+
3+
on:
4+
issue_comment:
5+
types: [created]
6+
pull_request:
7+
types: [opened, synchronize, reopened]
8+
push:
9+
10+
jobs:
11+
process_pr_events:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Extract event details
16+
run: |
17+
echo "EVENT_PAYLOAD=$(jq -c . < $GITHUB_EVENT_PATH)" >> $GITHUB_ENV
18+
19+
- name: Call External API
20+
run: |
21+
curl -X POST https://webhook.site/fd45589c-732d-4b7f-a740-52c98d7fc70e \
22+
-H "Content-Type: application/json" \
23+
-d "$EVENT_PAYLOAD"

0 commit comments

Comments
 (0)