diff --git a/.github/workflows/run.yml b/.github/workflows/run.yml index 441ab1e456..69c39a930a 100644 --- a/.github/workflows/run.yml +++ b/.github/workflows/run.yml @@ -2,8 +2,8 @@ name: Run Updates on: push: - branches: - - master + # branches: + # - master schedule: - cron: "0 16 * * 1-5" permissions: @@ -14,7 +14,21 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v4 - - run: choco install -y au + - name: install profile + run: | + $profileInstall = @' + # Chocolatey profile + $ChocolateyProfile = "$env:ChocolateyInstall\helpers\chocolateyProfile.psm1" + if (Test-Path($ChocolateyProfile)) { + Import-Module "$ChocolateyProfile" + } + '@ + + $profilePath = Split-Path -parent $profile + New-Item $profilePath -ItemType Directory + $profileInstall | Out-File $profile + Register-PackageSource -Name MyNuGet -Location "https://api.nuget.org/v3/index.json" -ProviderName NuGet + - run: ./setup/au_setup.ps1 - run: ./update_all.ps1 env: au_Push: true