Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

store tagLocations data #9997

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .github/workflows/store-tagLoc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Tag Locations Data

on:
schedule:
- cron: "*/60 * * * *"

workflow_dispatch:

jobs:
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
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
Empty file added static/tagLocStore.json
Empty file.