Skip to content
/ curl Public
forked from wei/curl

Wraps the curl CLI to be used in Github Actions

Notifications You must be signed in to change notification settings

cialfo/curl

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

GitHub Action for curl

Wraps the curl CLI to be used in GitHub Actions. See also 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 [email protected]

License

MIT

About

Wraps the curl CLI to be used in Github Actions

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Dockerfile 88.7%
  • Shell 11.3%