Limit beta's webhook to test-branches only

This commit is contained in:
Raffson 2022-10-14 21:12:32 +02:00
parent 9d65c450b6
commit 33305cfb46
No known key found for this signature in database
GPG Key ID: B0402B2C9B764D99

View File

@ -42,11 +42,11 @@ jobs:
- name: Send status to Discord
uses: stegzilla/discord-notify@v2
with:
webhook_url: ${{ secrets.discord_webhook_betas }} # required
webhook_url: ${{ secrets.discord_webhook_betas }}
title: "Build #${{ github.run_number }} available!"
message: "**Download link:\n**
message: "**Branch:** ${{ github.ref_name }}\n**Download link:\n**
https://github.com/dcs-retribution/dcs-retribution/actions/runs/${{ github.run_id }}"
include_image: true
avatar_url: https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png
username: GitHub Build Notifier
if: success() # or failure() or success()
if: startsWith(github.ref_name, 'test')