Skip to content

Commit

Permalink
update tagloc store workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
daemon1024 committed Aug 5, 2021
1 parent 2912c22 commit f055afd
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/store-tagLoc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,23 @@ on:
workflow_dispatch:

jobs:
fetch:
store:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- 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

0 comments on commit f055afd

Please sign in to comment.