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?
name: Refresh Feed
on: [push]
jobs:
refresh-feed:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
persist-credentials: false
- name: Fetch API Data
uses: JamesIves/fetch-api-data-action@1.0.15
with:
ENDPOINT: https://www.loc.gov/maps/?fa=location:cyprus&fo=json&at=results
RETRY: true