Changes to Workfows

This commit is contained in:
Michel Roegl-Brunner
2025-05-13 14:19:16 +02:00
parent 98daf9bc56
commit c3f73291a3
14 changed files with 96 additions and 89 deletions

View File

@@ -7,13 +7,14 @@ on:
jobs:
close_discord_thread:
if: github.repository == 'community-scripts/ProxmoxVED'
runs-on: ubuntu-latest
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" | \