From 00c2c2e0de4ba955e5498acf668a03b731ad4740 Mon Sep 17 00:00:00 2001 From: Kenji Miyake Date: Tue, 16 Aug 2022 17:11:43 +0900 Subject: [PATCH] ci(docker-build-and-push): use tentative if-condition for scheduled events Signed-off-by: Kenji Miyake --- .github/actions/docker-build-and-push/action.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/actions/docker-build-and-push/action.yaml b/.github/actions/docker-build-and-push/action.yaml index 9af377c04e1..d2bc5dbba42 100644 --- a/.github/actions/docker-build-and-push/action.yaml +++ b/.github/actions/docker-build-and-push/action.yaml @@ -97,7 +97,8 @@ runs: - name: Build and push uses: docker/bake-action@v2 with: - push: ${{ github.ref_name == github.event.repository.default_branch }} + # Checking event_name for https://github.com/autowarefoundation/autoware/issues/2796 + push: ${{ github.event_name == 'schedule' || github.ref_name == github.event.repository.default_branch }} files: | docker/${{ inputs.bake-target }}/docker-bake.hcl bake.json