Skip to content

Commit 2ac843e

Browse files
committed
ci: optimize workflows to prevent conflicts
build.yml changes: - Remove 'on: push' trigger (conflicted with deploy.yml) - Keep manual dispatch only - Prevent unnecessary workflow runs - Save GitHub Actions minutes Workflow strategy: - build.yml: Generate file lists (manual) - deploy.yml: Deploy to Pages (manual) - celebration-2026.yml: Auto-deploy on 2026 (scheduled) All workflows now non-conflicting ✅
1 parent 2ee24fd commit 2ac843e

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

.github/workflows/build.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
name: Build and Deploy
1+
name: Generate File Lists
22

33
on:
4-
push:
5-
branches: [ main ]
6-
workflow_dispatch:
4+
workflow_dispatch: # Manual trigger only
75

86
permissions:
97
contents: write
@@ -29,7 +27,7 @@ jobs:
2927
git config --local user.email "github-actions[bot]@users.noreply.github.com"
3028
git config --local user.name "github-actions[bot]"
3129
git add content/files.json docs/files.json
32-
git diff --quiet && git diff --staged --quiet || git commit -m "Auto-generate file lists"
30+
git diff --quiet && git diff --staged --quiet || git commit -m "chore: auto-generate file lists"
3331
3432
- name: Push changes
3533
uses: ad-m/github-push-action@master

0 commit comments

Comments
 (0)