fetch-api-data-action | handling authenticated API requests | Continous Integration library
kandi X-RAY | fetch-api-data-action Summary
kandi X-RAY | fetch-api-data-action Summary
This GitHub Action will handle authenticated API requests for you, allowing you to save the data from the request into your workspace as an environment variable and a file. Using this action will allow you to save data from these queries on a schedule so they can be used in a static page without exposing your API credentials. You can read more about the inspiration for this action here. Maintainence of this project is made possible by all the contributors and sponsors. If you'd like to sponsor this project and have your avatar or company logo appear below click here. .
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of fetch-api-data-action
fetch-api-data-action Key Features
fetch-api-data-action Examples and Code Snippets
Community Discussions
Trending Discussions on fetch-api-data-action
QUESTION
I am using this GitHub action https://github.com/JamesIves/fetch-api-data-action to fetch and save data fetched by an API:
this is my configuration for 2 actions, one to fetch the API and then build and deploy to save the .json fetching from the API
...ANSWER
Answered 2021-May-07 at 19:50You are using an old version of that action. Perhaps try moving to v4 which handles some of these parameters differently. If you are pushing back to the same repository you do not even need to pass a token.
Other than that, I see two possible things to check:
You reference branch
main
in the first action butmaster
in the second. Are these pointing to the same repository? If so, I'd think the branch names would be the same.With the v3 component, the docs for
ACCESS_TOKEN
kind of imply you need to be using a generated Personal Access Token that you have stored in the secrets. That is what I used when using this action although I was pushing to a different repository so the was a must anyway.
I moved to v4 quite a while ago though.
QUESTION
I would like to set up a GitHub actions workflow that:
- Makes an API request to another site (outside of GitHub), which returns JSON.
- Add (commit) that JSON to my repo
I have an action that looks like below. It appears to run correctly, and the log even outputs that the file has been saved. But, the file never appears anywhere in my repo.
I've never set up actions before, so I'm new to some of the terminology around them as well.
Any tips or thoughts on how to get this action or work, or an alternative approach?
...ANSWER
Answered 2020-Aug-31 at 09:38I mean from the readme of the repo it seems that you just need to run this action with the github token. I just ran the Fetch API Data action and was able to see the new directory created by running an ls on an step after the action.
Then you would need to create a secret and add the env ACCESS_TOKEN
Action to run
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install fetch-api-data-action
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page