From ca7fce090cc83fb4b793dba1d05cfc8d10b281b2 Mon Sep 17 00:00:00 2001 From: nitin sanghi Date: Mon, 2 Dec 2024 16:48:56 +0530 Subject: [PATCH] windows pipeline change Signed-off-by: nitin sanghi --- .github/workflows/habitat-build.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/habitat-build.yml b/.github/workflows/habitat-build.yml index 63415e3d..2403ed50 100644 --- a/.github/workflows/habitat-build.yml +++ b/.github/workflows/habitat-build.yml @@ -98,6 +98,7 @@ jobs: run: | write-output "--- STARTING HAB INSTALL ON ${{ matrix.os }} WINDOWS with habitat version:${{vars.HABITAT_VERSION_SET}}" $env:HAB_LICENSE = "accept-no-persist" + $env:HAB_NONINTERACTIVE = "true" $env:HAB_FALLBACK_CHANNEL= "${{vars.HAB_FALLBACK_CHANNEL}}" Invoke-Expression "& { $(Invoke-RestMethod https://raw.githubusercontent.com/habitat-sh/habitat/main/components/hab/install.ps1) } -Version ${{vars.HABITAT_VERSION_SET}}" - name: run habitat packaging windows @@ -110,7 +111,7 @@ jobs: hab origin key download --auth ${{ secrets.HAB_AUTH_TOKEN }} --secret ${{ env.HAB_ORIGIN }} write-output "--- running windows hab build" hab pkg build . - hartfile=$(ls ./results | grep "chef-cli" | tail -n 1) + hartfile=$(ls ./results | findstr "chef-cli") hab pkg install ./results/$hartfile - . ./results/last_build.env - habitat/tests/test.ps1 \ No newline at end of file + . ./results/last_build.ps1 + habitat/tests/test.ps1 $pkg_ident \ No newline at end of file