Skip to content

Curl for Github Actions

Actions
A GitHub Action to run a curl command via the GitHub Actions runner
v1.0.2
Latest
Star (1)

GitHub Action for curl

Wraps the curl CLI to be used in GitHub Actions.

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: sozo-design/[email protected]
      with:
        args: https://httpbin.org/get
on: push
jobs:
  curl:
    runs-on: ubuntu-latest
    steps:
    - name: curl
      uses: sozo-design/[email protected]
      with:
        args: -X POST https://httpbin.org/post
on: push
jobs:
  curl:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@master
    - name: curl
      uses: sozo-design/[email protected]
      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

Clive Walkden [email protected]

License

MIT

Curl for Github Actions is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

A GitHub Action to run a curl command via the GitHub Actions runner
v1.0.2
Latest

Curl for Github Actions is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.