fetch-api-data-action

🚚 GitHub action for handling authenticated API requests, allowing you to save the data from the request into your workspace as an environment variable and a .json file.

MIT License

Downloads
1.3K
Stars
100
Committers
8

Bot releases are visible (Hide)

fetch-api-data-action - v2.4.1 Latest Release

Published by JamesIves 4 months ago

What's Changed

Dependencies 🤖

Other Changes

Full Changelog: https://github.com/JamesIves/fetch-api-data-action/compare/v2...v2.4.1

fetch-api-data-action - v2.4.0

Published by JamesIves 11 months ago

What's Changed

Full Changelog: https://github.com/JamesIves/fetch-api-data-action/compare/v2.3.0...v2.4.0

fetch-api-data-action - v2.3.0

Published by JamesIves about 1 year ago

What's Changed

  • Resolved an issue with the environment variable generated by the action. It is now named fetchApiData as opposed to fetch-api-data (invalid on Ubuntu). This is not considered a breaking change as this was broken to begin with. This part of the code is not frequently used and thus some iteration was expected here.
  • Added integration tests to ensure the functionality of the environment variables and step output persists cross versions.
  • Added action input that allows you to modify the environment variable name. This is called variable-name, and defaults to the standard fetchApiData name if unset. Details can be found in the project readme.
  • Properly called setOutput via @actions/core so you can now reference fetchApiData as an output step too should you choose. This was previously documented in the action.yml file but not actually called in code.
  • For working examples of the above you can view the action integration tests here.

Dependencies

Full Changelog: https://github.com/JamesIves/fetch-api-data-action/compare/v2...v2.3.0

fetch-api-data-action - v2.2.4

Published by JamesIves about 2 years ago

What's Changed

  • The action now fully runs on Node 16. (Thank you @nickmccurdy)

Changelog

New Contributors

Full Changelog: https://github.com/JamesIves/fetch-api-data-action/compare/v2...v2.2.4

fetch-api-data-action - v2.2.3

Published by JamesIves over 2 years ago

Minor Changes

  • Linting scripts have been updated to ensure that everything across the repo gets picked up.
  • Numerous dependency updates.

New Contributors

Sponsors ❤️

  • Special thanks to @github for their generous sponsorship contributions.

  

Full Changelog: https://github.com/JamesIves/fetch-api-data-action/compare/v2...v2.2.3

fetch-api-data-action - v2.2.2

Published by JamesIves over 2 years ago

Minor Changes

  • Resolves some issues presented from an earlier deploy.
  • Dependency bumps across the board.
fetch-api-data-action - v2.2.1

Published by JamesIves over 2 years ago

Minor Changes

  • Implemented a set-output parameter that lets you toggle off the saving of the data an environment variable.
fetch-api-data-action - v2.2.0

Published by JamesIves almost 3 years ago

Changes

  • Implements an encoding option which allows you to adjust the encoding type of the file being saved. Special thanks to @humble-barnacle001 #480
fetch-api-data-action - 2.1.0

Published by JamesIves almost 3 years ago

Changes

  • Implements a new option called format which allows you to modify the format of the data being saved. You can leverage this to save text data if that is responded via the API request.

Minor Changes

  • Fixes an issue with the debug option as it wasn't properly parsing the response.
  • Introduces major version tags. You can now point your workflow to JamesIves/fetch-api-data-action@v2` if you'd like to always have the most cutting edge changes outside of using the release branch directly.
  • Dependency bumps.
  • README updates.
fetch-api-data-action - 2.0.1

Published by JamesIves almost 3 years ago

Minor Changes

  • Fixes an issue when using the debug flag caused by a missing property in the action.yml file.
fetch-api-data-action - 2.0.0

Published by JamesIves almost 3 years ago

Version 2.0.0 🎉

It's been long overdue, but version 2.0.0 is here.

Major Changes

  • The action now uses lowercase snake-case for parameters instead of uppercase with underscores LIKE_THIS. You can see an example of this below:
name: Refresh Feed
on: [push]
jobs:
  refresh-feed:
    runs-on: ubuntu-latest
    steps:
      - name: Fetch API Data 📦
        uses: JamesIves/[email protected]
        with:
          endpoint: https://example.com
          configuration: '{ "method": "GET", "headers": {"Authorization": "Bearer ${{ secrets.API_TOKEN }}"} }'
          save-name: youtube
  • Added a debug flag which allows you to log your way through the workflow. With this flag turned on you'll see all API responses the action receives in the terminal. You can find details surrounding this in the README.
  • Migrated to Node 14 from 12 for development.

Minor Changes

  • Tons of dependency and security updates from third party libraries.
  • Migrated ESLint/Prettier config.
  • Added workflow helpers for quicker releases.
  • Improved integration testing.
  • Added GitHub Discussions support.
  • Added Sponsors section to README.
fetch-api-data-action - 1.0.19

Published by JamesIves almost 4 years ago

Minor Changes

  • Dependency updates.
fetch-api-data-action - 1.0.17

Published by JamesIves almost 4 years ago

Minor Changes

  • Dependencies (again).
fetch-api-data-action - 1.0.16

Published by JamesIves almost 4 years ago

Minor Changes

  • Dependency bumps to fix an issue in a dependency which was causing set-env, resulting in a workflow failure.
fetch-api-data-action - 1.0.15

Published by JamesIves about 4 years ago

Major Changes

  • Fixed an issue that was preventing builds from passing from 1.0.11.
fetch-api-data-action - 1.0.11

Published by JamesIves over 4 years ago

Minor Changes

  • Fixed README for GitHub registry publish.
fetch-api-data-action - 1.0.9

Published by JamesIves over 4 years ago

Minor Changes

  • More workflow changes related to publishing.
fetch-api-data-action - 1.0.8

Published by JamesIves over 4 years ago

Minor Changes

  • Fixes scopes package name issue.
fetch-api-data-action - 1.0.7

Published by JamesIves over 4 years ago

Minor Changes

  • Fixed the GitHub registry issue.
  • Fixed unit tests by replacing the fetch-request-mock library with nock.
fetch-api-data-action - 1.0.6

Published by JamesIves over 4 years ago

Minor Changes

  • Fixed a series of publishing issues.
  • Added a script that automatically bumps the version number.
Package Rankings
Top 9.3% on Npmjs.org
Top 3.33% on Github actions
Related Projects