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

Commit 2316b63

Browse files
committed
Adjust nightly build action to show commits from the past 24 hours and run on pushes to master branch.
1 parent 7955417 commit 2316b63

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/nightly.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Nightly Build
33
on:
44
push:
55
branches:
6-
- main
6+
- master
77
workflow_dispatch:
88

99
defaults:
@@ -53,13 +53,13 @@ jobs:
5353
cd .\zip
5454
Compress-Archive -Path .\* -DestinationPath ..\${{ github.event.repository.name }}_nightly.zip
5555
56-
- name: Generate Changelog from Last 48 Hours
56+
- name: Generate Changelog
5757
run: |
58-
$since = (Get-Date).AddDays(-2).ToString("yyyy-MM-ddTHH:mm:ssZ")
58+
$since = (Get-Date).AddDays(-1).ToString("yyyy-MM-ddTHH:mm:ssZ")
5959
git fetch --prune --unshallow
6060
$changelog = git log --since="$since" --pretty=format:"- %s (%h)" | Out-String
61-
if (-not $changelog) { $changelog = "No new commits in the last 48 hours." }
62-
"### Latest Commits in Last 48 Hours`n$changelog" | Set-Content release_body.md
61+
if (-not $changelog) { $changelog = "No new commits in the last 24 hours." }
62+
"### Commits From the Last 24 Hours`n$changelog" | Set-Content release_body.md
6363
6464
- uses: ncipollo/release-action@v1
6565
with:

0 commit comments

Comments
 (0)