Skip to content

fix curseforge showing version 1.0.0 always. Not even sure how to do that manually #1257

fix curseforge showing version 1.0.0 always. Not even sure how to do that manually

fix curseforge showing version 1.0.0 always. Not even sure how to do that manually #1257

Workflow file for this run

name: Discord events
on:
issue_comment:
types:
- created
issues:
types:
- opened
jobs:
test:
permissions:
issues: 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 ""