Skip to content

Added new working Flake for NixOs users. #113

Added new working Flake for NixOs users.

Added new working Flake for NixOs users. #113

Workflow file for this run

name: Reload bot
on:
push:
branches:
- main
workflow_dispatch:
env:
PYTHON: python3.11
PIP: pip3.11
jobs:
reload:
runs-on: [self-hosted, linux]
steps:
- name: Go to the bot directory
run : cd ~/Dijkstra-Chan
- name: Pull and checkout branch
run: |
cd ~/Dijkstra-Chan
git pull origin ${{ github.ref_name }}
git checkout ${{ github.ref_name }}
- name: Set up Python environnement
run: |
cd ~/Dijkstra-Chan
source env/bin/activate
$PYTHON -m pip install --upgrade pip
$PIP install -r requirements.txt
- name: Shutdown bot
continue-on-error: true
run: killall $PYTHON
- name: Run bot
env:
RUNNER_TRACKING_ID: ""
DISCORD_TOKEN: ${{ secrets.DISCORD_TOKEN }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
run: |
cd ~/Dijkstra-Chan
source env/bin/activate
$PYTHON main.py &