Skip to content

Commit 1a6ff70

Browse files
Copilotroflmuffin
andauthored
chore(ci): disable discord notifications for pre-release versions (#1132)
Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: roflmuffin <[email protected]>
1 parent edb0872 commit 1a6ff70

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/build-and-publish.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,7 @@ jobs:
258258
dotnet nuget push build/api/CounterStrikeSharp.API.${{ needs.setup.outputs.gitversion_semver }}.snupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate
259259
260260
- name: Send Notification to Discord
261+
if: ${{ !contains(github.ref_name, '-alpha') && !contains(github.ref_name, '-beta') && !contains(github.ref_name, '-rc') }}
261262
env:
262263
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
263264
uses: Ilshidur/[email protected]

0 commit comments

Comments
 (0)