diff --git a/.github/workflows/gallery.yml b/.github/workflows/gallery.yml index 3812466e3b..45bf728a94 100644 --- a/.github/workflows/gallery.yml +++ b/.github/workflows/gallery.yml @@ -7,6 +7,9 @@ on: defaults: run: shell: pwsh + env: + SMODefaultModuleName: dbatools + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} jobs: linux-tests: runs-on: ${{ matrix.os }} @@ -14,8 +17,6 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, arm64] - env: - GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} steps: - uses: actions/checkout@v3 @@ -23,7 +24,7 @@ jobs: - name: Install and cache PowerShell modules uses: potatoqualitee/psmodulecache@v5.2 with: - modules-to-cache: dbatools.library:2023.4.27 + modules-to-cache: dbatools.library:2023.5.5 - name: Download dbatools from Gallery run: | diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index a6ba64e2df..bc416d4904 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -3,6 +3,10 @@ on: [push] defaults: run: shell: pwsh + env: + SMODefaultModuleName: dbatools + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} + jobs: linux-tests: runs-on: ${{ matrix.os }} @@ -10,8 +14,6 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, arm64] - env: - GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} steps: - uses: actions/checkout@v3 @@ -19,7 +21,7 @@ jobs: - name: Install and cache PowerShell modules uses: potatoqualitee/psmodulecache@v5.2 with: - modules-to-cache: dbatools.library:2023.4.27 + modules-to-cache: dbatools.library:2023.5.5 - name: Set encryption values run: | @@ -57,8 +59,6 @@ jobs: windows-tests: runs-on: windows-latest - env: - GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} steps: - name: Checkout dbatools repo @@ -68,7 +68,7 @@ jobs: uses: potatoqualitee/psmodulecache@v5.2 with: shell: powershell, pwsh - modules-to-cache: dbatools.library:2023.4.27 + modules-to-cache: dbatools.library:2023.5.5 - name: Install SQL Server localdb uses: potatoqualitee/mssqlsuite@v1.3 diff --git a/.github/workflows/xplat-import.yml b/.github/workflows/xplat-import.yml index 20c600df8f..b5e9be4d6a 100644 --- a/.github/workflows/xplat-import.yml +++ b/.github/workflows/xplat-import.yml @@ -1,8 +1,13 @@ name: Cross Platform Import on: [push] +defaults: + env: + SMODefaultModuleName: dbatools jobs: build: + env: + SMODefaultModuleName: dbatools name: Module imports on all platforms runs-on: ${{ matrix.os }} strategy: @@ -16,7 +21,7 @@ jobs: - name: Install and cache PowerShell modules uses: potatoqualitee/psmodulecache@v5.2 with: - modules-to-cache: dbatools.library:2023.4.27 + modules-to-cache: dbatools.library:2023.5.5 - name: Perform the import shell: pwsh diff --git a/dbatools.psd1 b/dbatools.psd1 index 2077cc3fab..d72b5e4b55 100644 --- a/dbatools.psd1 +++ b/dbatools.psd1 @@ -29,7 +29,7 @@ Description = "The community module that enables SQL Server Pros to automate database development and server administration" # Modules that must be imported into the global environment prior to importing this module - RequiredModules = @{ ModuleName = 'dbatools.library'; ModuleVersion = '2023.4.27' } + RequiredModules = @{ ModuleName = 'dbatools.library'; ModuleVersion = '2023.5.5' } # Assemblies that must be loaded prior to importing this module RequiredAssemblies = @()