ci(nightly): make Discord notification optional for manual runs (#1322)
This commit is contained in:
@@ -4,6 +4,12 @@ on:
|
|||||||
schedule:
|
schedule:
|
||||||
- cron: '0 4 * * *'
|
- cron: '0 4 * * *'
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
post_discord:
|
||||||
|
description: 'Post the Discord nightly announcement'
|
||||||
|
required: false
|
||||||
|
type: boolean
|
||||||
|
default: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
resolve_ref:
|
resolve_ref:
|
||||||
@@ -200,7 +206,7 @@ jobs:
|
|||||||
|
|
||||||
notify-discord:
|
notify-discord:
|
||||||
name: Notify Discord (Nightly)
|
name: Notify Discord (Nightly)
|
||||||
if: ${{ always() && needs.generate-notes.result == 'success' && needs.build-and-push.result == 'success' && needs.export-openapi.result == 'success' && needs.generate-notes.outputs.available == 'true' && needs.generate-notes.outputs.predicted_version != '' }}
|
if: ${{ always() && (github.event_name == 'schedule' || inputs.post_discord) && needs.generate-notes.result == 'success' && needs.build-and-push.result == 'success' && needs.export-openapi.result == 'success' && needs.generate-notes.outputs.available == 'true' && needs.generate-notes.outputs.predicted_version != '' }}
|
||||||
needs: [resolve_ref, build-and-push, export-openapi, generate-notes]
|
needs: [resolve_ref, build-and-push, export-openapi, generate-notes]
|
||||||
permissions: {}
|
permissions: {}
|
||||||
uses: ./.github/workflows/notify-discord-release-notes.yml
|
uses: ./.github/workflows/notify-discord-release-notes.yml
|
||||||
|
|||||||
Reference in New Issue
Block a user