diff --git a/.github/workflows/delete-discord-thread.yml b/.github/workflows/delete-discord-thread.yml index 19e36081..1c36059e 100644 --- a/.github/workflows/delete-discord-thread.yml +++ b/.github/workflows/delete-discord-thread.yml @@ -9,12 +9,12 @@ jobs: close_discord_thread: if: github.repository == 'community-scripts/ProxmoxVED' runs-on: ubuntu-latest + env: + ISSUE_TITLE: ${{ github.event.issue.title }} steps: - name: Get thread-ID op and close thread run: | - ISSUE_TITLE="${{ github.event.issue.title }}" - THREAD_ID=$(curl -s -X GET "https://discord.com/api/v10/guilds/${{ secrets.DISCORD_GUILD_ID }}/threads/active" \ -H "Authorization: Bot ${{ secrets.DISCORD_BOT_TOKEN }}" \ -H "Content-Type: application/json" | \