Curl for GitHub Actions
- make http requests
- catch http errors
- pipe JSON response through jq
on: push
jobs:
curl:
runs-on: ubuntu-latest
steps:
- name: curl
uses: ghostwriter/curl@main
with:
args: 'https://httpbin.org/get' | jq '.'
docker run --rm $(docker build -q .) \
https://httpbin.org/get