Fetch Api Data Action Versions Save

🚚 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.

v2.4.0

6 months ago

What's Changed

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

v2.3.0

9 months 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

v2.2.4

1 year 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

v2.2.3

1 year 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.

github  

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

v2.2.2

2 years ago

Minor Changes

  • Resolves some issues presented from an earlier deploy.
  • Dependency bumps across the board.

v2.2.1

2 years ago

Minor Changes

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

v2.2.0

2 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

v2.1.0

2 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.

2.0.1

2 years ago

Minor Changes

  • Fixes an issue when using the debug flag caused by a missing property in the action.yml file.

2.0.0

2 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.