Skip to content
download

GitHub Action

Fetch Data to File

1.1.0 Latest version

Fetch Data to File

download

Fetch Data to File

Action to fetch data from a public API to a file

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Fetch Data to File

uses: gautemo/[email protected]

Learn more about this action in gautemo/fetch-api-data-action

Choose a version

fetch-api-data-action

GitHub Action to fetch data from an API and save it to a file

Inputs

url

Required The url to fetch from.

file

The file data is saved to. Default actions/data.json

Example usage

uses: gautemo/[email protected]
with:
  url: 'https://fake-movie-database-api.herokuapp.com/api?s=batman'
  file: 'backup/data.json'