check emails for points #749
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: check emails for points | |
on: | |
schedule: | |
- cron: "0 0 * * *" | |
workflow_dispatch: | |
permissions: | |
contents: write | |
jobs: | |
main: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
- name: Restore cached folder | |
id: cache-folder-restore | |
uses: actions/cache/restore@v3 | |
with: | |
path: | | |
cache | |
key: ignore | |
restore-keys: | | |
folder-key- | |
- name: run main | |
uses: nick-fields/retry@v2 | |
with: | |
timeout_minutes: 60 | |
max_attempts: 3 | |
retry_on: error | |
command: bash main.sh | |
env: | |
CONFIGURATION: ${{ secrets.CONFIGURATION }} | |
- name: Save folder | |
id: cache-folder-save | |
uses: actions/cache/save@v3 | |
with: | |
path: | | |
cache | |
key: folder-key-${{ github.run_id }} | |
- uses: gautamkrishnar/keepalive-workflow@v1 |