Skip discord notification in forks

This commit is contained in:
Raffson 2024-03-28 15:08:12 +01:00
parent 4bbe28838d
commit bd7f7615b0
No known key found for this signature in database
GPG Key ID: B0402B2C9B764D99

View File

@ -49,7 +49,7 @@ jobs:
include_image: true
avatar_url: https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png
username: GitHub Build Notifier
if: startsWith(github.ref_name, 'test')
if: github.repository == 'dcs-retribution/dcs-retribution' && startsWith(github.ref_name, 'test')
- name: Send status to Discord
uses: stegzilla/discord-notify@v2
@ -60,4 +60,4 @@ jobs:
include_image: true
avatar_url: https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png
username: GitHub Build Notifier
if: github.ref_name == 'dev'
if: github.repository == 'dcs-retribution/dcs-retribution' && github.ref_name == 'dev'