Update delete-discord-thread.yml
This commit is contained in:
parent
87c733c419
commit
5b7829d8f0
4
.github/workflows/delete-discord-thread.yml
vendored
4
.github/workflows/delete-discord-thread.yml
vendored
@ -9,12 +9,12 @@ jobs:
|
|||||||
close_discord_thread:
|
close_discord_thread:
|
||||||
if: github.repository == 'community-scripts/ProxmoxVED'
|
if: github.repository == 'community-scripts/ProxmoxVED'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
env:
|
||||||
|
ISSUE_TITLE: ${{ github.event.issue.title }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Get thread-ID op and close thread
|
- name: Get thread-ID op and close thread
|
||||||
run: |
|
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" \
|
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 "Authorization: Bot ${{ secrets.DISCORD_BOT_TOKEN }}" \
|
||||||
-H "Content-Type: application/json" | \
|
-H "Content-Type: application/json" | \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user