From 79d1aa05fdab1b118921a22c567e2665b3dd4179 Mon Sep 17 00:00:00 2001 From: Yang Jiao <72076317+YangJiao0817@users.noreply.github.com> Date: Thu, 11 May 2023 14:49:22 +0800 Subject: [PATCH] Refresh the base images when building on main (#18661) Be able to discover photon updates in time. Signed-off-by: Yang Jiao --- .github/workflows/build-package.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-package.yml b/.github/workflows/build-package.yml index 6bab6f08f..5b1ef4f01 100644 --- a/.github/workflows/build-package.yml +++ b/.github/workflows/build-package.yml @@ -46,7 +46,8 @@ jobs: if: | contains(steps.changed-files.outputs.modified, 'Dockerfile.base') || contains(steps.changed-files.outputs.modified, 'VERSION') || - contains(steps.changed-files.outputs.modified, '.buildbaselog') + contains(steps.changed-files.outputs.modified, '.buildbaselog') || + github.ref == 'refs/heads/main' run: | set -x echo "BUILD_BASE=true" >> $GITHUB_ENV