Skip to content

Commit da37532

Browse files
authored
Merge pull request #52 from redis/fix_unstable_on_schedule
Assume unstable build when event_name is schedule
2 parents 810c57d + d5f99cd commit da37532

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

.github/workflows/apt.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ on:
2424
run-name: >-
2525
${{ (github.ref_name == 'unstable'
2626
|| github.event_name == 'workflow_dispatch'
27-
|| github.event_name == 'workflow_call')
27+
|| github.event_name == 'workflow_call'
28+
|| github.event_name == 'schedule')
2829
&& 'Build Unstable'
2930
|| format('Build on {0} to {1}', github.event_name, github.ref_name)
3031
}}
@@ -37,14 +38,15 @@ jobs:
3738
BUILD_ARCHS: ${{ vars.BUILD_ARCHS }}
3839
BUILD_EXCLUDE: ${{ vars.BUILD_EXCLUDE }}
3940
SMOKE_TEST_IMAGES: ${{ vars.SMOKE_TEST_IMAGES }}
40-
# determine whether we should use special "unstable" release_tag
41-
# Assume that for unstable branch and for any external call or dispatch
42-
# we are building unstable release
43-
# In other cases it's a regular PR/push build
41+
# Determine whether we should use special "unstable" release_tag. Assume
42+
# that for unstable branch and for any external call, dispatch or schedule
43+
# we are building unstable release. In other cases it's a regular PR/push
44+
# build without using specific release_tag.
4445
release_tag: >-
4546
${{ (github.ref_name == 'unstable'
4647
|| github.event_name == 'workflow_dispatch'
47-
|| github.event_name == 'workflow_call')
48+
|| github.event_name == 'workflow_call'
49+
|| github.event_name == 'schedule')
4850
&& 'unstable'
4951
|| ''
5052
}}

0 commit comments

Comments
 (0)