fix: host only on cron

This commit is contained in:
TrèsAbhi authored and GitHub committed 2023-06-30 12:59:18 -05:00
1 parent ebe1fb891b
commit 25ea608d81
1 file changed
+1 -4
+1 -4
View File
@@ -3,9 +3,6 @@ name: Host
on: on:
schedule: schedule:
- cron: '0 */5 * * *' - cron: '0 */5 * * *'
push:
branches:
- 'main'
workflow_dispatch: workflow_dispatch:
concurrency: concurrency:
@@ -34,5 +31,5 @@ jobs:
curl -L -o dist.zip $DOWNLOAD_URL curl -L -o dist.zip $DOWNLOAD_URL
unzip dist.zip unzip dist.zip
- name: Run index.cjs - name: Run bot
run: NODE_ENV=production DISCORD_TOKEN=${{ secrets.DISCORD_TOKEN }} WARGAMING_APPLICATION_ID=${{ secrets.WARGAMING_APPLICATION_ID }} node --enable-source-maps --trace-warnings bot.cjs run: NODE_ENV=production DISCORD_TOKEN=${{ secrets.DISCORD_TOKEN }} WARGAMING_APPLICATION_ID=${{ secrets.WARGAMING_APPLICATION_ID }} node --enable-source-maps --trace-warnings bot.cjs