Skip to content

Commit 8d48277

Browse files
committed
Simplify workflow - post raw activity data without AI summarization
gh copilot doesn't work reliably in GitHub Actions. Use raw activity report for now.
1 parent 17efcc8 commit 8d48277

File tree

1 file changed

+2
-30
lines changed

1 file changed

+2
-30
lines changed

.github/workflows/fvutils-weekly-report.yaml

Lines changed: 2 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -65,30 +65,6 @@ jobs:
6565
6666
cat /tmp/activity.md
6767
68-
- name: Generate Short News Update
69-
env:
70-
COPILOT_GITHUB_TOKEN: ${{ github.token }}
71-
run: |
72-
cat > /tmp/prompt.txt << 'EOF'
73-
Based on the following GitHub activity from the past week, create a concise 2-3 paragraph news update suitable for a website news section. Focus on the most significant changes and developments. Keep it professional and informative.
74-
75-
EOF
76-
cat /tmp/activity.md >> /tmp/prompt.txt
77-
78-
gh copilot -p "$(cat /tmp/prompt.txt)" > /tmp/short_news.txt
79-
80-
- name: Generate Detailed Overview
81-
env:
82-
COPILOT_GITHUB_TOKEN: ${{ github.token }}
83-
run: |
84-
cat > /tmp/detail_prompt.txt << 'EOF'
85-
Based on the following GitHub activity from the past week, create a detailed weekly overview with sections for different types of changes (commits, pull requests, issues). Include relevant details and provide context about the significance of changes. Format as markdown.
86-
87-
EOF
88-
cat /tmp/activity.md >> /tmp/detail_prompt.txt
89-
90-
gh copilot -p "$(cat /tmp/detail_prompt.txt)" > /tmp/detailed_overview.txt
91-
9268
- name: Create Discussion Post
9369
env:
9470
GH_TOKEN: ${{ github.token }}
@@ -97,12 +73,8 @@ jobs:
9773
YEAR=$(date -u +%Y)
9874
TITLE="Weekly Update - Week $WEEK_NUM, $YEAR"
9975
100-
# Combine short summary and detailed overview into body
101-
cat /tmp/short_news.txt > /tmp/discussion_body.md
102-
echo "" >> /tmp/discussion_body.md
103-
echo "## Detailed Activity Overview" >> /tmp/discussion_body.md
104-
echo "" >> /tmp/discussion_body.md
105-
cat /tmp/detailed_overview.txt >> /tmp/discussion_body.md
76+
# Use the activity report as the discussion body
77+
cat /tmp/activity.md > /tmp/discussion_body.md
10678
echo "" >> /tmp/discussion_body.md
10779
echo "---" >> /tmp/discussion_body.md
10880
echo "" >> /tmp/discussion_body.md

0 commit comments

Comments
 (0)