Automate delete-me-discord #22
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: Automate delete-me-discord | |
on: | |
schedule: | |
- cron: '0 2 * * *' # Runs daily at 02:00 UTC | |
workflow_dispatch: # Allows manual triggering | |
jobs: | |
run-delete-me-discord: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.9' # Ensure this matches your project's Python version | |
- name: Install delete-me-discord | |
run: | | |
python -m pip install --upgrade pip | |
pip install delete-me-discord==0.0.7 | |
- name: Run delete-me-discord | |
env: | |
DISCORD_TOKEN: ${{ secrets.DISCORD_TOKEN }} | |
DISCORD_USER_ID: ${{ secrets.DISCORD_USER_ID }} | |
run: | | |
delete-me-discord ${{ secrets.DELETE_ME_ARGS }} |