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