From 36db5d16894be5602f3ea739149d4255c48a4cba Mon Sep 17 00:00:00 2001 From: Ben Adrian Sarmiento Date: Wed, 19 Jun 2024 02:10:50 +0200 Subject: [PATCH] Publish every 2am CET --- .github/workflows/build.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 826a9d7..b52b9e6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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;