Skip to content

Commit 8f34aba

Browse files
chengzeyiclaude
andcommitted
Trigger nightly release on every push to main
- nightly.yml: Add push trigger for main branch, create release immediately - build.yml: Remove push to main trigger to avoid duplicate builds - Build workflow now only runs on tags (releases) and PRs 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 705a2ee commit 8f34aba

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/build.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ name: Build
22

33
on:
44
push:
5-
branches: [main]
65
tags:
76
- 'v*'
87
pull_request:

.github/workflows/nightly.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
name: Nightly Build
22

33
on:
4+
push:
5+
branches: [main]
46
schedule:
57
# Run at 2:00 AM UTC every day
68
- cron: '0 2 * * *'
79
workflow_dispatch:
810

911
jobs:
1012
check-changes:
13+
# Only check for changes on scheduled runs
14+
if: github.event_name == 'schedule'
1115
runs-on: ubuntu-latest
1216
outputs:
1317
should_build: ${{ steps.check.outputs.should_build }}
@@ -30,7 +34,8 @@ jobs:
3034
3135
build:
3236
needs: check-changes
33-
if: needs.check-changes.outputs.should_build == 'true' || github.event_name == 'workflow_dispatch'
37+
# Build on push, workflow_dispatch, or if scheduled and has changes
38+
if: always() && (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || needs.check-changes.outputs.should_build == 'true')
3439
strategy:
3540
matrix:
3641
include:

0 commit comments

Comments
 (0)