diff --git a/.github/workflows/store-tagLoc.yml b/.github/workflows/store-tagLoc.yml index 805a4b6cd9..2c6367deb4 100644 --- a/.github/workflows/store-tagLoc.yml +++ b/.github/workflows/store-tagLoc.yml @@ -7,7 +7,7 @@ on: workflow_dispatch: jobs: - fetch: + store: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 @@ -15,9 +15,15 @@ jobs: - name: Fetch data from API endpoint run: curl "https://publiclab.org/api/srch/taglocations?nwlat=52&selat=-52&nwlng=-150&selng=150&limit=1000" > static/tagLocStore.json + - name: Check if changes exist + run: | + git status + git diff + - name: Commit and push - working-directory: ./website run: | + git config --global user.email "github-actions[bot]@users.noreply.github.com" + git config --global user.name "github-actions[bot]" git add . git commit -m "updated tagLocations data" git push https://${{ secrets.GITHUB_TOKEN }}@github.com/daemon1024/plots2