fharper / wget

wget wrapped as a GitHub Action

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GitHub Action for wget

Wraps the wget CLI to be used in GitHub Actions. Note that it's a Docker container action, which means it works only on Linux-based OS.

I do not plan to maintain it, but you can still use it even if it's archived. You can also fork it.

Features

  • make http requests
  • http errors are treated as errors

Usage

GitHub Actions

on: push
jobs:
  wget:
    runs-on: ubuntu-latest
    steps:
    - name: wget
      uses: fharper/wget@v1
      with:
        args: -O sample.html https://httpbin.org/html
on: push
jobs:
  wget:
    runs-on: ubuntu-latest
    steps:
    - name: wget
      uses: fharper/wget@v1
      with:
        args: -qO- https://httpbin.org/get

Docker

docker run --rm $(docker build -q .) \
  -qO- https://httpbin.org/get

Original

Wei He is the original creator, but deleted his GitHub account, which means all workflows using this action stopped working, so I decided to re-upload the code.

About

wget wrapped as a GitHub Action

License:MIT License


Languages

Language:Dockerfile 93.3%Language:Shell 6.7%