-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yaml
26 lines (26 loc) · 896 Bytes
/
action.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
name: "API Request Action"
description: "Perform HTTP API requests in GitHub Actions to interact with external services and capture responses."
author: Muh Faris
branding:
icon: "zap"
color: "blue"
inputs:
url: # id of input
description: "The URL of the API you want to make a request to"
required: true
headers:
description: "A JSON-formatted string containing the headers to include in the request"
default: '{"Content-Type": "application/json"}'
body:
description: "The request body data (if applicable)."
method:
description: "The HTTP method to use for the request (default is POST if not specified)."
default: "POST"
outputs:
response-status: # id of output
description: "The HTTP status code of the API response"
response-data:
description: "The JSON-formatted response data from the API"
runs:
using: "node16"
main: "dist/index.js"