Run early

This commit is contained in:
Ben Adrian Sarmiento
2024-06-24 01:52:52 +02:00
parent bd450f4f8b
commit 3b26040f7e
3 changed files with 7 additions and 7 deletions

View File

@@ -5,7 +5,7 @@ on:
tags:
- 'v**'
schedule:
- cron: '0 1 * * *'
- cron: '0 0 * * *'
jobs:
build:
@@ -38,7 +38,7 @@ jobs:
continue-on-error: false
run: |
# 3AM CET
since="$(date -d 'yesterday' +%Y-%m-%d) 01:00:00"
since="$(date -d 'yesterday' +%Y-%m-%d) 00:00:00"
count=$(git rev-list --count --since="$since" --until=now HEAD)
if [ "$count" -gt 0 ]; then
echo "new_commits=true" >> $GITHUB_OUTPUT

View File

@@ -5,7 +5,7 @@ on:
tags:
- 'v**'
schedule:
- cron: '0 1 * * *'
- cron: '0 0 * * *'
jobs:
build-and-push-image:
@@ -25,7 +25,7 @@ jobs:
continue-on-error: false
run: |
# 3AM CET
since="$(date -d 'yesterday' +%Y-%m-%d) 01:00:00"
since="$(date -d 'yesterday' +%Y-%m-%d) 00:00:00"
count=$(git rev-list --count --since="$since" --until=now HEAD)
if [ "$count" -gt 0 ]; then
echo "new_commits=true" >> $GITHUB_OUTPUT

View File

@@ -276,9 +276,6 @@ func (zr *Handlers) handleHome(resp http.ResponseWriter, req *http.Request) {
<tr>
<td>Utilities</td>
<td colspan="2">
<form method="get" action="/logs/upload">
<input type="submit" value="Upload logs" /> Share the link to get help
</form>
<form method="post" action="/torrents/dump">
<input type="submit" value="Dump torrents" /> Copy all your zurgtorrent files to your dump folder
</form>
@@ -295,6 +292,9 @@ func (zr *Handlers) handleHome(resp http.ResponseWriter, req *http.Request) {
<tr>
<td>Debug</td>
<td colspan="2">
<form method="get" action="/logs/upload">
<input type="submit" value="Upload logs" /> Share the link to get help
</form>
<form method="post" action="/reboot-worker">
<input type="submit" value="Reboot worker pool" />
</form>