CasaOS - A simple, easy-to-use, elegant open-source Personal Cloud system.
Update push_events_to_discord.yml
John Guan7f642a7a4ceb
diff --git a/.github/workflows/push_events_to_discord.yml b/.github/workflows/push_events_to_discord.ymlindex d73fcd8..bb121b6 100644--- a/.github/workflows/push_events_to_discord.yml+++ b/.github/workflows/push_events_to_discord.yml@@ -7,6 +7,14 @@ on:issue_comment:types:- created+ discussion:+ types:+ - created+ - transferred+ - answered+ discussion_comment:+ types:+ - createdjobs:push-events:@@ -14,15 +22,27 @@ jobs:runs-on: ubuntu-lateststeps:++ - name: General Discussions & Comments+ if: ${{ ( github.event_name == 'discussion' || github.event_name == 'discussion_comment' ) && github.event.discussion.name == "General" }}+ uses: joseph-montanez/[email protected]+ with:+ webhook: ${{ secrets.Discord_CasaOS_General_Webhook }}- - name: App Request Issues- if: ${{ github.event_name == 'issues' && github.event.action == 'opened' && contains(github.event.issue.labels.*.name, 'App Request')}}+ - name: App Request Issues & Comments+ if: ${{ ( github.event_name == 'issues' || github.event_name == 'issue_comment' ) && contains(github.event.issue.labels.*.name, 'App Request') }}uses: joseph-montanez/[email protected]with:webhook: ${{ secrets.Discord_CasaOS_App_Request_Webhook }}- - name: App Request Issue Comments- if: ${{ github.event_name == 'issue_comment' && github.event.action == 'created' && contains(github.event.issue.labels.*.name, 'App Request')}}+ - name: Bug Issues & Comments+ if: ${{ ( github.event_name == 'issues' || github.event_name == 'issue_comment' ) && contains(github.event.issue.labels.*.name, 'bug') && !contains(!github.event.issue.labels.*.name, 'alpha') }}uses: joseph-montanez/[email protected]with:- webhook: ${{ secrets.Discord_CasaOS_App_Request_Webhook }}+ webhook: ${{ secrets.Discord_CasaOS_Bug_Webhook }}++ - name: Alpha Issues & Comments+ if: ${{ ( github.event_name == 'issues' || github.event_name == 'issue_comment' ) && contains(!github.event.issue.labels.*.name, 'alpha') }}+ uses: joseph-montanez/[email protected]+ with:+ webhook: ${{ secrets.Discord_CasaOS_Alpha_Webhook }}