Run OnePoint3Acres Actions #2
This file contains hidden or 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: Run OnePoint3Acres Actions | |
| on: | |
| schedule: | |
| - cron: '0 1 * * *' # every day 1 a.m. (UTC time 01:00, Beijing time 09:00) | |
| workflow_dispatch: # Allow manual trigger | |
| jobs: | |
| run-actions: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v2 | |
| with: | |
| python-version: '3.x' | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r requirements.txt | |
| # - name: Setup Git | |
| # run: | | |
| # git config --local user.name "github-actions[bot]" | |
| # git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
| - name: Run onepoint3acres script | |
| env: | |
| ONEPOINT3ACRES_COOKIE: ${{ secrets.ONEPOINT3ACRES_COOKIE }} | |
| TWOCAPTCHA_APIKEY: ${{ secrets.TWOCAPTCHA_APIKEY }} | |
| TELEGRAM_TOKEN: ${{ secrets.TELEGRAM_TOKEN }} | |
| TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }} | |
| run: | | |
| python -m onepoint3acres.onepoint3acres | |
| # - name: Commit and push | |
| # run: | | |
| # git add . | |
| # git commit -m "Successfully run $(date +"%Y-%m-%d %H:%M:%S")" | |
| # git push |