Skip to content

cron/daily

cron/daily #386

Workflow file for this run

name: cron/daily
on:
workflow_dispatch:
schedule:
- cron: '0 7,19 * * *'
jobs:
cronjob:
runs-on: ubuntu-latest
steps:
- name: 🙏 Make Request
id: req
uses: fjogeleit/http-request-action@v1
with:
url: http://m3.devs.space/cron/daily
method: GET
contentType: text/plain
timeout: 30000
- name: 🤲 Show Response
env:
RES_BODY: ${{ steps.req.outputs.response }}
RES_HEADERS: ${{ steps.req.outputs.headers }}
run: |
echo '### 📦 Response body' >> $GITHUB_STEP_SUMMARY
echo '```' >> $GITHUB_STEP_SUMMARY
echo "$RES_BODY" >> $GITHUB_STEP_SUMMARY
echo '```' >> $GITHUB_STEP_SUMMARY
echo '### 📋 Response headers:' >> $GITHUB_STEP_SUMMARY
echo " $RES_HEADERS" >> $GITHUB_STEP_SUMMARY