dedene / curl

A simple cURL Github Action

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Simple cURL Github Action

This action runs a cURL command and makes the output available for other steps.

Inputs

  • url: The URL to request.

Outputs

  • curl_output: The output of the cURL command.

Example usage

uses: dedene/curl@v1
with:
  url: https://example.com
  args: -v

or with more complex arguments:

uses: dedene/curl@v1
with:
  args: -v -H "Accept: application/json" -H "Content-Type: application/json" -X POST -d '{"foo":"bar"}' https://example.com

About

A simple cURL Github Action

License:MIT License


Languages

Language:Shell 54.9%Language:Dockerfile 45.1%