Run early
This commit is contained in:
4
.github/workflows/build.yml
vendored
4
.github/workflows/build.yml
vendored
@@ -5,7 +5,7 @@ on:
|
|||||||
tags:
|
tags:
|
||||||
- 'v**'
|
- 'v**'
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '0 1 * * *'
|
- cron: '0 0 * * *'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@@ -38,7 +38,7 @@ jobs:
|
|||||||
continue-on-error: false
|
continue-on-error: false
|
||||||
run: |
|
run: |
|
||||||
# 3AM CET
|
# 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)
|
count=$(git rev-list --count --since="$since" --until=now HEAD)
|
||||||
if [ "$count" -gt 0 ]; then
|
if [ "$count" -gt 0 ]; then
|
||||||
echo "new_commits=true" >> $GITHUB_OUTPUT
|
echo "new_commits=true" >> $GITHUB_OUTPUT
|
||||||
|
|||||||
4
.github/workflows/build_docker.yml
vendored
4
.github/workflows/build_docker.yml
vendored
@@ -5,7 +5,7 @@ on:
|
|||||||
tags:
|
tags:
|
||||||
- 'v**'
|
- 'v**'
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '0 1 * * *'
|
- cron: '0 0 * * *'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-push-image:
|
build-and-push-image:
|
||||||
@@ -25,7 +25,7 @@ jobs:
|
|||||||
continue-on-error: false
|
continue-on-error: false
|
||||||
run: |
|
run: |
|
||||||
# 3AM CET
|
# 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)
|
count=$(git rev-list --count --since="$since" --until=now HEAD)
|
||||||
if [ "$count" -gt 0 ]; then
|
if [ "$count" -gt 0 ]; then
|
||||||
echo "new_commits=true" >> $GITHUB_OUTPUT
|
echo "new_commits=true" >> $GITHUB_OUTPUT
|
||||||
|
|||||||
@@ -276,9 +276,6 @@ func (zr *Handlers) handleHome(resp http.ResponseWriter, req *http.Request) {
|
|||||||
<tr>
|
<tr>
|
||||||
<td>Utilities</td>
|
<td>Utilities</td>
|
||||||
<td colspan="2">
|
<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">
|
<form method="post" action="/torrents/dump">
|
||||||
<input type="submit" value="Dump torrents" /> Copy all your zurgtorrent files to your dump folder
|
<input type="submit" value="Dump torrents" /> Copy all your zurgtorrent files to your dump folder
|
||||||
</form>
|
</form>
|
||||||
@@ -295,6 +292,9 @@ func (zr *Handlers) handleHome(resp http.ResponseWriter, req *http.Request) {
|
|||||||
<tr>
|
<tr>
|
||||||
<td>Debug</td>
|
<td>Debug</td>
|
||||||
<td colspan="2">
|
<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">
|
<form method="post" action="/reboot-worker">
|
||||||
<input type="submit" value="Reboot worker pool" />
|
<input type="submit" value="Reboot worker pool" />
|
||||||
</form>
|
</form>
|
||||||
|
|||||||
Reference in New Issue
Block a user