Skip to content

Commit 62979cb

Browse files
committed
style(workflows): fix trailing whitespace and EOF newlines
Remove trailing spaces and add missing newlines at end of files to comply with YAML linting standards and best practices. - clean-content.yml: Remove 7 trailing spaces, add EOF newline - notion-fetch-test.yml: Remove 9 trailing spaces, add EOF newline - deploy-production.yml: Remove 4 trailing spaces, add EOF newline All files now pass yamllint validation with zero errors.
1 parent 2163688 commit 62979cb

File tree

3 files changed

+22
-22
lines changed

3 files changed

+22
-22
lines changed

.github/workflows/clean-content.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@ jobs:
2626
uses: actions/checkout@v4
2727
with:
2828
ref: content
29-
29+
3030
- name: Setup Bun
3131
uses: oven-sh/setup-bun@v2
3232
with:
3333
bun-version: latest
34-
34+
3535
- name: Install dependencies
3636
run: bun install
37-
37+
3838
- name: Validate confirmation
3939
run: |
4040
if [ "${{ github.event.inputs.confirm }}" != "yes" ]; then
@@ -43,10 +43,10 @@ jobs:
4343
exit 1
4444
fi
4545
echo "✅ Confirmation received. Proceeding with cleanup..."
46-
46+
4747
- name: Clean generated content
4848
run: bun run clean:generated --confirm=yes
49-
49+
5050
- name: Commit cleanup results
5151
run: |
5252
git config user.name "github-actions[bot]"
@@ -63,10 +63,10 @@ jobs:
6363
6464
env:
6565
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
66-
66+
6767
- name: Show cleanup results
6868
run: |
6969
echo "🧹 Generated content cleanup completed"
7070
echo "📁 Remaining structure:"
7171
ls -la docs/ || echo "No docs directory"
72-
ls -la i18n/*/docusaurus-plugin-content-docs/current/ || echo "No i18n content directories"
72+
ls -la i18n/*/docusaurus-plugin-content-docs/current/ || echo "No i18n content directories"

.github/workflows/deploy-production.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,23 +64,23 @@ jobs:
6464

6565
- name: Install dependencies
6666
run: bun install
67-
67+
6868
- name: Build documentation
6969
run: bun run build
70-
70+
7171
- name: Deploy to Cloudflare Pages
7272
uses: cloudflare/wrangler-action@v3
7373
with:
7474
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
7575
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
7676
command: pages deploy build --project-name comapeo-docs --compatibility-date 2024-01-01
77-
77+
7878
- name: Update Notion status to Published
7979
run: bun run notionStatus:publish-production
8080
env:
8181
NOTION_API_KEY: ${{ secrets.NOTION_API_KEY }}
8282
DATABASE_ID: ${{ secrets.DATABASE_ID }}
83-
83+
8484
- name: Deployment summary
8585
run: |
8686
echo "🚀 **Production Deployment Complete!**" >> $GITHUB_STEP_SUMMARY
@@ -90,4 +90,4 @@ jobs:
9090
echo "- ✅ Notion status updated: Staging → Published" >> $GITHUB_STEP_SUMMARY
9191
echo "- 📅 Published date set to $(date -u +%Y-%m-%d)" >> $GITHUB_STEP_SUMMARY
9292
echo "" >> $GITHUB_STEP_SUMMARY
93-
echo "🌐 Site available at: https://docs.comapeo.app" >> $GITHUB_STEP_SUMMARY
93+
echo "🌐 Site available at: https://docs.comapeo.app" >> $GITHUB_STEP_SUMMARY

.github/workflows/notion-fetch-test.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,29 +25,29 @@ jobs:
2525
uses: actions/checkout@v4
2626
with:
2727
ref: content
28-
28+
2929
- name: Setup Bun
3030
uses: oven-sh/setup-bun@v2
3131
with:
3232
bun-version: latest
33-
33+
3434
- name: Install dependencies
3535
run: bun install
36-
36+
3737
- name: Setup environment
3838
run: |
3939
if [ "${{ github.event.inputs.force }}" = "true" ]; then
4040
echo "🔄 Force mode enabled - will overwrite existing content"
4141
else
4242
echo "📥 Normal mode - will fetch and update content"
4343
fi
44-
44+
4545
- name: Fetch content from Notion
4646
env:
4747
NOTION_API_KEY: ${{ secrets.NOTION_API_KEY }}
4848
NOTION_DATABASE_ID: ${{ secrets.DATABASE_ID }}
4949
run: bun run notion:fetch-all
50-
50+
5151
- name: Commit fetched content
5252
run: |
5353
git config user.name "github-actions[bot]"
@@ -69,7 +69,7 @@ jobs:
6969
# Push back to the repository with retry logic
7070
max_attempts=10
7171
attempt=1
72-
72+
7373
while [ $attempt -le $max_attempts ]; do
7474
echo "🔄 Push attempt $attempt of $max_attempts"
7575
@@ -82,7 +82,7 @@ jobs:
8282
break
8383
else
8484
echo "❌ Push failed on attempt $attempt"
85-
85+
8686
if [ $attempt -eq $max_attempts ]; then
8787
echo "💥 Max attempts reached. Push failed after $max_attempts attempts."
8888
exit 1
@@ -96,7 +96,7 @@ jobs:
9696
9797
env:
9898
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
99-
99+
100100
- name: Show fetch results
101101
run: |
102102
echo "📊 Notion fetch completed"
@@ -105,7 +105,7 @@ jobs:
105105
find i18n -name "*.md" -type f | wc -l | xargs echo "Localized docs:"
106106
echo "🖼️ Generated images:"
107107
find static/images -name "*.jpg" -o -name "*.png" -o -name "*.gif" 2>/dev/null | wc -l | xargs echo "Images processed:"
108-
108+
109109
- name: Create summary
110110
run: |
111111
echo "## 📋 Notion Fetch Summary" >> $GITHUB_STEP_SUMMARY
@@ -121,4 +121,4 @@ jobs:
121121
echo "### 🎯 Next Steps" >> $GITHUB_STEP_SUMMARY
122122
echo "- Review generated content for quality" >> $GITHUB_STEP_SUMMARY
123123
echo "- Test site build: \`bun run build\`" >> $GITHUB_STEP_SUMMARY
124-
echo "- Deploy when ready" >> $GITHUB_STEP_SUMMARY
124+
echo "- Deploy when ready" >> $GITHUB_STEP_SUMMARY

0 commit comments

Comments
 (0)