Publish every 2am CET
This commit is contained in:
9
.github/workflows/build.yml
vendored
9
.github/workflows/build.yml
vendored
@@ -5,7 +5,7 @@ on:
|
||||
tags:
|
||||
- '*'
|
||||
schedule:
|
||||
- cron: '*/15 * * * *'
|
||||
- cron: '0 2 * * *'
|
||||
|
||||
jobs:
|
||||
build:
|
||||
@@ -19,7 +19,7 @@ jobs:
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: '1.21'
|
||||
go-version: '1.22'
|
||||
|
||||
- name: Cache Go Modules
|
||||
uses: actions/cache@v3
|
||||
@@ -38,7 +38,6 @@ jobs:
|
||||
continue-on-error: false
|
||||
run: |
|
||||
# 3AM CET
|
||||
# date -d 'yesterday' +%Y-%m-%dT02:00:0
|
||||
since="$(date -d 'yesterday' +%Y-%m-%d) 02:00:00"
|
||||
count=$(git rev-list --count --since="$since" --until=now HEAD)
|
||||
if [ "$count" -gt 0 ]; then
|
||||
@@ -63,7 +62,7 @@ jobs:
|
||||
uses: crazy-max/ghaction-xgo@v3
|
||||
with:
|
||||
xgo_version: latest
|
||||
go_version: 1.21
|
||||
go_version: 1.22
|
||||
pkg: cmd/zurg
|
||||
targets: linux/amd64,windows/amd64,darwin/amd64
|
||||
dest: artifacts
|
||||
@@ -137,8 +136,8 @@ jobs:
|
||||
github-token: ${{ secrets.TOKEN }}
|
||||
script: |
|
||||
const ownerName = 'debridmediamanager';
|
||||
const repoName = 'zurg${{ !contains(github.ref, '-rc.') && '-testing' || '' }}';
|
||||
const tagName = '${{ steps.version.outputs.version }}';
|
||||
const repoName = `zurg${{ !contains(tagName, '-rc.') && !contains(tagName, '-nightly') && '-testing' || '' }}`;
|
||||
const releaseName = `${tagName}`;
|
||||
|
||||
let lastReleaseTime;
|
||||
|
||||
Reference in New Issue
Block a user