Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions .ci/azure-pipelines/daily-slot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# This is not a CI, just a CD
trigger: none
pr: none

pool:
vmImage: 'ubuntu-latest'
strategy:
matrix:
Python37:
python.version: '3.7'

schedules:
- cron: "0 0 * * *"
displayName: "Everyday midnight trigger"
branches:
include:
- master

steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '$(python.version)'
displayName: 'Use Python $(python.version)'

- script: |
python -m pip install --upgrade pip
pip install -r requirements.txt
displayName: 'Install dependencies'
- task: DownloadSecureFile@1
name: "discord_config"
displayName: 'Download login tokens for the bot'
inputs:
secureFile: 'config.json'

- script: |
python main.py --channel_id $(Channel ID) --config $(discord_config.secureFilePath)
displayName: 'Run trigger'