Skip to content

.github/workflows/fetch.yml #705

.github/workflows/fetch.yml

.github/workflows/fetch.yml #705

Workflow file for this run

on:
schedule:
- cron: "0 5,17 * * *" # every day at 5am and 5pm
jobs:
fetch_strava:
name: Fetch Strava
runs-on: ubuntu-22.04
steps:
- name: Make Request
id: myRequest
uses: fjogeleit/http-request-action@v1
with:
method: "GET"
url: "https://activitymap.dominik.page/api/strava/cron?number=30"
timeout: 10000
- name: Show Response
run: |
echo ${{ steps.myRequest.outputs.response }}
echo ${{ steps.myRequest.outputs.headers }}
echo ${{ steps.myRequest.outputs.status }}
echo ${{ fromJson(steps.myRequest.outputs.response).field_you_want_to_access }}