File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 2626 required : false
2727 type : string
2828 default : ' '
29+ create_summary :
30+ description : ' Create deployment summary (and monthly report if 1st of month)'
31+ required : false
32+ type : boolean
33+ default : false
2934
3035# Workflow-level concurrency to queue staging builds (wait instead of cancel)
3136concurrency :
@@ -407,6 +412,7 @@ jobs:
407412 path : ${{ github.repository }}/forrt-website
408413
409414 - name : Create deployment summary
415+ if : github.event_name != 'workflow_dispatch' || github.event.inputs.create_summary == 'true'
410416 run : |
411417 echo "## 🚀 Staging Deployment Summary" > deployment-summary.md
412418 echo "" >> deployment-summary.md
@@ -532,14 +538,14 @@ jobs:
532538 GH_TOKEN : ${{ secrets.STAGING_GITHUB_TOKEN }}
533539
534540 - name : Create monthly deployment report
535- if : github.event_name == 'schedule'
541+ if : github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && github.event.inputs.create_summary == 'true')
536542 run : |
537543 # Only create monthly report on scheduled runs (1st of month)
538544 CURRENT_DAY=$(date +%d)
539545 echo "🔍 Current day: $CURRENT_DAY, Event: ${{ github.event_name }}"
540546
541547 if [ "$CURRENT_DAY" = "01" ]; then
542- MONTH=$(date +%B %Y)
548+ MONTH=$(date +" %B %Y" )
543549 echo "📊 Creating monthly deployment report for $MONTH"
544550
545551 # Check if deployment summary file exists
You can’t perform that action at this time.
0 commit comments