Skip to content

Commit

Permalink
feat: set status flag of discord webhook
Browse files Browse the repository at this point in the history
  • Loading branch information
paullatzelsperger committed Oct 3, 2023
1 parent a7df88e commit ba3ed46
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/nightly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,16 @@ jobs:
secrets: inherit

Post-To-Discord:
needs: [ Publish-components, Determine-Version, Secrets-Presence ]
needs: [ Publish-Components, Determine-Version, Secrets-Presence ]
if: "needs.Secrets-Presence.outputs.HAS_WEBHOOK && always()"
runs-on: ubuntu-latest
steps:
- uses: sarisia/actions-status-discord@v1
name: "Invoke discord webhook"
with:
webhook: ${{ secrets.DISCORD_WEBHOOK_GITHUB }}
# if the publishing is skipped, that means the preceding test run failed
status: ${{ needs.Publish-Components.result == 'skipped' && 'Failure' || needs.Publish-Components.result }}
title: "Nightly Build"
description: "Build and publish ${{ needs.Determine-Version.outputs.VERSION }}"
username: GitHub Actions

0 comments on commit ba3ed46

Please sign in to comment.