Fix gacha getting stuck #1434
Workflow file for this run
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: discord | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
pull_request_review: | |
types: [submitted] | |
branches: [main] | |
jobs: | |
update-commands: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: denoland/setup-deno@v1 | |
with: | |
deno-version: v2.x | |
- if: github.ref != 'refs/heads/main' | |
name: Set environment to dummy | |
run: echo "GUILD_ID=${{ secrets.DUMMY_GUILD }}" >> "$GITHUB_ENV" | |
- name: Update Commands | |
run: deno run -A update_commands.ts | |
env: | |
APP_ID: ${{ secrets.APP_ID }} | |
BOT_TOKEN: ${{ secrets.BOT_TOKEN }} |