We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 59870e6 commit 0c3e58fCopy full SHA for 0c3e58f
.github/workflows/ci-release.yml
@@ -5,6 +5,8 @@ on:
5
inputs:
6
sha:
7
description: "SHA to release (a recent commit from main that hasn't been released yet)"
8
+ schedule:
9
+ - cron: "0 8 * * *" # Runs at 00:00 PT (08:00 UTC) daily
10
11
env:
12
REGISTRY: ghcr.io
@@ -15,6 +17,11 @@ jobs:
15
17
16
18
SHA_TO_RELEASE: ${{ github.event.inputs.sha || github.sha }}
19
steps:
20
+ - name: Set SHA from main branch if scheduled
21
+ if: github.event_name == 'schedule'
22
+ run: |
23
+ echo "SHA_TO_RELEASE=$(git ls-remote origin refs/heads/main | cut -f1)" >> $GITHUB_ENV
24
+
25
- name: Checkout
26
uses: actions/checkout@v4
27
with:
0 commit comments