Skip to content

Scrape hiking relations modified in last 24h #1165

Scrape hiking relations modified in last 24h

Scrape hiking relations modified in last 24h #1165

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: Scrape hiking relations modified in last 24h
# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
workflow_dispatch:
schedule:
- cron: '0 0 * * *'
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
scheduled:
runs-on: ubuntu-latest
steps:
- name: check out this repo
uses: actions/checkout@v2
- name: Get the data and analyze
run: |
chmod +x ./CAI_mods.sh
chmod +x ./build-index.sh
./CAI_mods.sh val && ./CAI_mods.sh abr && ./CAI_mods.sh mar && ./CAI_mods.sh sic && ./CAI_mods.sh fri && ./CAI_mods.sh ven && ./CAI_mods.sh emr && ./CAI_mods.sh lom && ./CAI_mods.sh pie && ./CAI_mods.sh lig && ./CAI_mods.sh tos && ./build-index.sh
shell: bash
- name: Commit and push if changed
run: |-
git config user.name "Automated"
git config user.email "[email protected]"
git add -A
timestamp=$(date -u)
git commit -m "Latest data: ${timestamp}" || exit 0
git push