Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnGuan committed Aug 10, 2022
2 parents 1902b2d + fc5e351 commit a5133bd
Showing 1 changed file with 25 additions and 5 deletions.
30 changes: 25 additions & 5 deletions .github/workflows/push_events_to_discord.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,42 @@ on:
issue_comment:
types:
- created
discussion:
types:
- created
- transferred
- answered
discussion_comment:
types:
- created

jobs:
push-events:

runs-on: ubuntu-latest

steps:

- name: General Discussions & Comments
if: ${{ ( github.event_name == 'discussion' || github.event_name == 'discussion_comment' ) && github.event.discussion.category.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 }}

0 comments on commit a5133bd

Please sign in to comment.