checkin-workflow #1059
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: checkin-workflow | |
on: | |
schedule: | |
- cron: '40 0,8,16 * * *' | |
workflow_dispatch: | |
permissions: | |
contents: read | |
jobs: | |
checkin-job: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.12 | |
uses: actions/setup-python@v3 | |
with: | |
python-version: "3.12" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install requests | |
- name: Release api key to environment | |
env: | |
APIKEY: ${{ secrets.RAINYUN_APIKEY }} | |
run: | | |
echo "$APIKEY" > arguments.txt | |
- name: Run main script | |
run: | | |
python main.py |