Przeglądaj źródła

Update push_events_to_discord.yml

John Guan 2 lat temu
rodzic
commit
fc5e351f0b
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      .github/workflows/push_events_to_discord.yml

+ 1 - 1
.github/workflows/push_events_to_discord.yml

@@ -24,7 +24,7 @@ jobs:
     steps:
       
       - name: General Discussions & Comments
-        if: ${{ ( github.event_name == 'discussion' || github.event_name == 'discussion_comment' ) && github.event.discussion.name == "General" }}
+        if: ${{ ( github.event_name == 'discussion' || github.event_name == 'discussion_comment' ) && github.event.discussion.category.name == 'General' }}
         uses: joseph-montanez/forward-event-action@v3.0.0
         with:
           webhook: ${{ secrets.Discord_CasaOS_General_Webhook }}