Skip to content
This repository was archived by the owner on Jul 7, 2025. It is now read-only.

Commit 7955417

Browse files
committed
Update nightly build action.
1 parent 1881e68 commit 7955417

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/nightly.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
name: Nightly Build
22

33
on:
4-
schedule:
5-
- cron: "0 */4 * * *"
4+
push:
5+
branches:
6+
- main
67
workflow_dispatch:
78

89
defaults:
@@ -55,6 +56,7 @@ jobs:
5556
- name: Generate Changelog from Last 48 Hours
5657
run: |
5758
$since = (Get-Date).AddDays(-2).ToString("yyyy-MM-ddTHH:mm:ssZ")
59+
git fetch --prune --unshallow
5860
$changelog = git log --since="$since" --pretty=format:"- %s (%h)" | Out-String
5961
if (-not $changelog) { $changelog = "No new commits in the last 48 hours." }
6062
"### Latest Commits in Last 48 Hours`n$changelog" | Set-Content release_body.md

0 commit comments

Comments
 (0)