This action used to post form-data and/or upload file from repository
Input | Required | Description | Example |
---|---|---|---|
url | Yes | HTTP Endpoint | 'www.example.com' |
headers | No | Addition Headers | '{"x-api-key": "123456"}' |
data | No | Form Data | '{"key": "value"}' |
name | No | File Name | 'config' |
file | No | File Path | 'assets/config.json' |
- name: Send HTTP Form-Data POST Request
uses: alikamal1/Form_Data_HTTP_POST_Action@main
with:
url: 'https://example.com'
data: '{"key_1": "value_1", "key_2": "value_2"}'
- name: Send HTTP Form-Data POST Request
uses: alikamal1/Form_Data_HTTP_POST_Action@main
with:
url: 'https://example.com'
name: 'config'
file: 'assets/config.json'
- name: Send HTTP Form-Data POST Request
uses: alikamal1/Form_Data_HTTP_POST_Action@main
with:
url: 'https://example.com'
headers: '{"x-api-key": "123456"}'
data: '{"key_1": "value_1", "key_2": "value_2"}'
name: 'config'
file: 'assets/config.json'