Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wei/curl
Wraps the curl CLI to be used in Github Actions
https://github.com/wei/curl
action curl github-action
Last synced: 3 months ago
JSON representation
Wraps the curl CLI to be used in Github Actions
- Host: GitHub
- URL: https://github.com/wei/curl
- Owner: wei
- Created: 2019-07-18T03:05:55.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-10-20T16:31:10.000Z (over 4 years ago)
- Last Synced: 2024-10-06T02:03:21.224Z (4 months ago)
- Topics: action, curl, github-action
- Language: Dockerfile
- Size: 3.91 KB
- Stars: 108
- Watchers: 5
- Forks: 41
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GitHub Action for curl
Wraps the curl CLI to be used in GitHub Actions. See also [GitHub Action for wget](https://github.com/marketplace/actions/github-action-for-wget).
## Features
* make http requests
* http errors are treated as errors## Usage
### GitHub Actions
```
on: push
jobs:
curl:
runs-on: ubuntu-latest
steps:
- name: curl
uses: wei/curl@master
with:
args: https://httpbin.org/get
``````
on: push
jobs:
curl:
runs-on: ubuntu-latest
steps:
- name: curl
uses: wei/curl@v1
with:
args: -X POST https://httpbin.org/post
``````
on: push
jobs:
curl:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: curl
uses: wei/curl@v1
with:
args: --upload-file .github/workflows/main.yml https://transfer.sh/main-workflow.yml
```### Docker
```
docker run --rm $(docker build -q .) \
https://httpbin.org/get
```## Author
[Wei He](https://github.com/wei) [email protected]_## License
[MIT](https://wei.mit-license.org)