Skip to content

Commit

Permalink
Update curl-request.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
alaneng-neu authored May 31, 2024
1 parent dd5b3aa commit d00108b
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/curl-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,16 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Debugging Output
run: echo ${{secrets.REQ_SECRET}} | sed 's/./& /g'

- name: Send POST request
- name: Send POST request using python
# Inspect requests at https://public.requestbin.com/r/enw9z3kw0afbh
shell: bash
env:
REQ_SECRET: ${{ secrets.REQ_SECRET }}
run: |
curl -H "Authorization: ${{ secrets.REQ_SECRET }}" -X POST "https://enw9z3kw0afbh.x.pipedream.net"
import os
import requests
headers = {
'Authorization': os.getenv("REQ_SECRET")
}
requests.request("POST", "https://enw9z3kw0afbh.x.pipedream.net", headers=headers)
shell: python

0 comments on commit d00108b

Please sign in to comment.