Update push_events_to_discord.yml

This commit is contained in:
John Guan 2022-08-08 17:30:30 +08:00 committed by GitHub
parent ce5ecfcf84
commit 8b2c9486da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,13 +4,25 @@ on:
issues: issues:
types: types:
- opened - opened
issue_comment:
types:
- created
jobs: jobs:
push-events: push-events:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: App Request Events
- name: App Request Issues
if: ${{ github.event_name == 'issues' && github.event.action == 'opened' && contains(github.event.issue.labels.*.name, 'App Request')}} if: ${{ github.event_name == 'issues' && github.event.action == 'opened' && contains(github.event.issue.labels.*.name, 'App Request')}}
uses: joseph-montanez/forward-event-action@v3.0.0 uses: joseph-montanez/forward-event-action@v3.0.0
with: with:
webhook: ${{ secrets.Discord_CasaOS_App_Request_Webhook }} 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')}}
uses: joseph-montanez/forward-event-action@v3.0.0
with:
webhook: ${{ secrets.Discord_CasaOS_App_Request_Webhook }}