Skip to content

Commit e2b97a9

Browse files
Fix date in workflow and add optional deployment summary on manual run (#672)
1 parent d9bcb2e commit e2b97a9

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/staging-aggregate.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ on:
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)
3136
concurrency:
@@ -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

0 commit comments

Comments
 (0)