Skip to content

ender dragon respawn #3379

ender dragon respawn

ender dragon respawn #3379

Workflow file for this run

name: Discord events
on:
issue_comment:
types:
- created
issues:
types:
- opened
pull_request:
types:
- opened
jobs:
test:
permissions:
issues: write
pull-requests: write
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DISCORD_TOKEN: ${{ secrets.DISCORD_TOKEN }}
TARGET_REPO: ${{ github.repository }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
repository: Yarden-zamir/discord_bot
- uses: actions/setup-node@v4
with:
node-version: 20
- env:
GITHUB_CONTEXT: ${{ toJson(github) }}
DISCORD_SERVER_ID: ${{ vars.DISCORD_SERVER_ID }}
DISCORD_INPUT_FORUM_CHANNEL_ID: ${{ vars.DISCORD_INPUT_FORUM_CHANNEL_ID }}
run: |
touch .env
echo "DISCORD_TOKEN=$DISCORD_TOKEN" >> .env
echo "GITHUB_TOKEN=$GITHUB_TOKEN" >> .env
echo "DISCORD_SERVER_ID=$DISCORD_SERVER_ID" >> .env
echo "TARGET_REPO=$TARGET_REPO" >> .env
echo "DISCORD_INPUT_FORUM_CHANNEL_ID=$DISCORD_INPUT_FORUM_CHANNEL_ID" >> .env
npm install discord.js
npm install octokit
echo "$GITHUB_CONTEXT" > ./payload.json
node index.js -e ""