NBA 2k Locker Codes #872
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: NBA 2k Locker Codes | |
on: | |
schedule: | |
- cron: '0 */6 * * *' | |
jobs: | |
collector: | |
name: NBA 2k locker codes collector | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python 3.x | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.x' | |
architecture: 'x64' | |
- name: Install dependencies | |
run: if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | |
- name: Running app with 24 version | |
run: python 2k.py 24 | |
env: | |
TELEGRAM_TOKEN: ${{ secrets.TELEGRAM_2K_BOT_TOKEN }} | |
TELEGRAM_ID: ${{ secrets.TELEGRAM_ID }} | |
NBA2K_JSON: ${{ secrets.NBA2K_JSON }} | |
LOCKERCODES_HOST: ${{ secrets.LOCKERCODES_HOST }} | |
LOCKERCODES_PATH: ${{ secrets.LOCKERCODES_PATH }} |