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 b86bbcc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/nightly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
if: |
needs.Secrets-Presence.outputs.HAS_GH_PAT
strategy:
fail-fast: false
fail-fast: true
matrix:
test-def: [ { repo: "runtime-metamodel", workflowfile: "ci.yaml" },
{ repo: "gradleplugins", workflowfile: "test.yaml" },
Expand Down 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 b86bbcc

Please sign in to comment.