cron/daily #386
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |