cron/backup #30
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/backup | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '30 7 * * 5' | |
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/backup | |
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 |