name: ð on: schedule: - cron: "*/5 * * * *" workflow_dispatch: jobs: report: name: "alive" runs-on: "ubuntu-latest" steps: - uses: "actions/checkout@v2" - uses: "actions/setup-python@v2" with: python-version: '3.x' - uses: actions/cache@v2 with: path: | ${{ env.pythonLocation }} ~/.wdm key: ${{ env.pythonLocation }}-${{ hashFiles('requirements.txt') }} - name: "Install dependencies" run: | python -m pip install --upgrade --upgrade-strategy eager -r requirements.txt - name: "Run report" env: WEBHOOK_KEY: ${{secrets.WEBHOOK_KEY}} EMAIL: ${{secrets.EMAIL}} MASTER_PASSWORD: ${{secrets.MASTER_PASSWORD}} run: "python ./status.py" - uses: actions/upload-artifact@v2 if: failure() with: name: screenshot-${{github.run_id}} path: screenshot.png retention-days: 1