Skip to content

Commit 41cdde9

Browse files
upd
1 parent 7bb0f86 commit 41cdde9

5 files changed

Lines changed: 85 additions & 8 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"version": "2025.7.12-previewmain20250712215817",
2+
"version": "2025.7.12-preview-main-20250712223522",
33
"notes": "Version of dbatools.library to use for CI/CD and development"
44
}

.github/workflows/gallery.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,25 @@ jobs:
2727
run: |
2828
$versionConfig = Get-Content '.github/dbatools-library-version.json' | ConvertFrom-Json
2929
$version = $versionConfig.version
30+
$isPreview = $version -like "*preview*"
3031
Write-Output "version=$version" >> $env:GITHUB_OUTPUT
32+
Write-Output "is_preview=$isPreview" >> $env:GITHUB_OUTPUT
3133
Write-Output "Using dbatools.library version: $version"
34+
Write-Output "Is preview version: $isPreview"
3235
33-
- name: Install and cache PowerShell modules
36+
- name: Install and cache PowerShell modules (stable versions)
37+
if: steps.get-version.outputs.is_preview == 'False'
3438
uses: potatoqualitee/psmodulecache@v6.2.1
3539
with:
3640
modules-to-cache: dbatools.library:${{ steps.get-version.outputs.version }}
3741

42+
- name: Install dbatools.library (preview versions)
43+
if: steps.get-version.outputs.is_preview == 'True'
44+
shell: pwsh
45+
run: |
46+
Write-Output "Preview version detected, bypassing PSModuleCache and using install script"
47+
./.github/scripts/install-dbatools-library.ps1
48+
3849
- name: Download dbatools from Gallery
3950
run: |
4051
Set-PSRepository -Name PSGallery -InstallationPolicy Trusted

.github/workflows/integration-tests-repl.yml

Lines changed: 36 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,25 @@ jobs:
1818
run: |
1919
$versionConfig = Get-Content '.github/dbatools-library-version.json' | ConvertFrom-Json
2020
$version = $versionConfig.version
21+
$isPreview = $version -like "*preview*"
2122
Write-Output "version=$version" >> $env:GITHUB_OUTPUT
23+
Write-Output "is_preview=$isPreview" >> $env:GITHUB_OUTPUT
2224
Write-Output "Using dbatools.library version: $version"
25+
Write-Output "Is preview version: $isPreview"
2326
24-
- name: Install and cache PowerShell modules
27+
- name: Install and cache PowerShell modules (stable versions)
28+
if: steps.get-version.outputs.is_preview == 'False'
2529
uses: potatoqualitee/psmodulecache@v6.2.1
2630
with:
2731
modules-to-cache: dbatools.library:${{ steps.get-version.outputs.version }}
2832

33+
- name: Install dbatools.library (preview versions)
34+
if: steps.get-version.outputs.is_preview == 'True'
35+
shell: pwsh
36+
run: |
37+
Write-Output "Preview version detected, bypassing PSModuleCache and using install script"
38+
./.github/scripts/install-dbatools-library.ps1
39+
2940
- name: Set encryption values
3041
run: |
3142
Import-Module ./dbatools.psd1 -Force
@@ -77,14 +88,25 @@ jobs:
7788
run: |
7889
$versionConfig = Get-Content '.github/dbatools-library-version.json' | ConvertFrom-Json
7990
$version = $versionConfig.version
91+
$isPreview = $version -like "*preview*"
8092
Write-Output "version=$version" >> $env:GITHUB_OUTPUT
93+
Write-Output "is_preview=$isPreview" >> $env:GITHUB_OUTPUT
8194
Write-Output "Using dbatools.library version: $version"
95+
Write-Output "Is preview version: $isPreview"
8296
83-
- name: Install and cache PowerShell modules
97+
- name: Install and cache PowerShell modules (stable versions)
98+
if: steps.get-version.outputs.is_preview == 'False'
8499
uses: potatoqualitee/psmodulecache@v6.2.1
85100
with:
86101
modules-to-cache: dbatools.library:${{ steps.get-version.outputs.version }}
87102

103+
- name: Install dbatools.library (preview versions)
104+
if: steps.get-version.outputs.is_preview == 'True'
105+
shell: pwsh
106+
run: |
107+
Write-Output "Preview version detected, bypassing PSModuleCache and using install script"
108+
./.github/scripts/install-dbatools-library.ps1
109+
88110
- name: Set encryption values
89111
run: |
90112
Import-Module ./dbatools.psd1 -Force
@@ -136,14 +158,25 @@ jobs:
136158
run: |
137159
$versionConfig = Get-Content '.github/dbatools-library-version.json' | ConvertFrom-Json
138160
$version = $versionConfig.version
161+
$isPreview = $version -like "*preview*"
139162
Write-Output "version=$version" >> $env:GITHUB_OUTPUT
163+
Write-Output "is_preview=$isPreview" >> $env:GITHUB_OUTPUT
140164
Write-Output "Using dbatools.library version: $version"
165+
Write-Output "Is preview version: $isPreview"
141166
142-
- name: Install and cache PowerShell modules
167+
- name: Install and cache PowerShell modules (stable versions)
168+
if: steps.get-version.outputs.is_preview == 'False'
143169
uses: potatoqualitee/psmodulecache@v6.2.1
144170
with:
145171
modules-to-cache: dbatools.library:${{ steps.get-version.outputs.version }}
146172

173+
- name: Install dbatools.library (preview versions)
174+
if: steps.get-version.outputs.is_preview == 'True'
175+
shell: pwsh
176+
run: |
177+
Write-Output "Preview version detected, bypassing PSModuleCache and using install script"
178+
./.github/scripts/install-dbatools-library.ps1
179+
147180
- name: Set encryption values
148181
run: |
149182
Import-Module ./dbatools.psd1 -Force

.github/workflows/integration-tests.yml

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,25 @@ jobs:
2424
run: |
2525
$versionConfig = Get-Content '.github/dbatools-library-version.json' | ConvertFrom-Json
2626
$version = $versionConfig.version
27+
$isPreview = $version -like "*preview*"
2728
Write-Output "version=$version" >> $env:GITHUB_OUTPUT
29+
Write-Output "is_preview=$isPreview" >> $env:GITHUB_OUTPUT
2830
Write-Output "Using dbatools.library version: $version"
31+
Write-Output "Is preview version: $isPreview"
2932
30-
- name: Install and cache PowerShell modules
33+
- name: Install and cache PowerShell modules (stable versions)
34+
if: steps.get-version.outputs.is_preview == 'False'
3135
uses: potatoqualitee/psmodulecache@v6.2.1
3236
with:
3337
modules-to-cache: dbatools.library:${{ steps.get-version.outputs.version }}
3438

39+
- name: Install dbatools.library (preview versions)
40+
if: steps.get-version.outputs.is_preview == 'True'
41+
shell: pwsh
42+
run: |
43+
Write-Output "Preview version detected, bypassing PSModuleCache and using install script"
44+
./.github/scripts/install-dbatools-library.ps1
45+
3546
- name: Set encryption values
3647
run: |
3748
Import-Module ./dbatools.psd1 -Force
@@ -82,15 +93,26 @@ jobs:
8293
run: |
8394
$versionConfig = Get-Content '.github/dbatools-library-version.json' | ConvertFrom-Json
8495
$version = $versionConfig.version
96+
$isPreview = $version -like "*preview*"
8597
Write-Output "version=$version" >> $env:GITHUB_OUTPUT
98+
Write-Output "is_preview=$isPreview" >> $env:GITHUB_OUTPUT
8699
Write-Output "Using dbatools.library version: $version"
100+
Write-Output "Is preview version: $isPreview"
87101
88-
- name: Install and cache PowerShell modules
102+
- name: Install and cache PowerShell modules (stable versions)
103+
if: steps.get-version.outputs.is_preview == 'False'
89104
uses: potatoqualitee/psmodulecache@v6.2.1
90105
with:
91106
shell: powershell, pwsh
92107
modules-to-cache: dbatools.library:${{ steps.get-version.outputs.version }}
93108

109+
- name: Install dbatools.library (preview versions)
110+
if: steps.get-version.outputs.is_preview == 'True'
111+
shell: pwsh
112+
run: |
113+
Write-Output "Preview version detected, bypassing PSModuleCache and using install script"
114+
./.github/scripts/install-dbatools-library.ps1
115+
94116
- name: Install SQL Server localdb
95117
uses: potatoqualitee/mssqlsuite@v1.3
96118
with:

.github/workflows/xplat-import.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,25 @@ jobs:
2121
run: |
2222
$versionConfig = Get-Content '.github/dbatools-library-version.json' | ConvertFrom-Json
2323
$version = $versionConfig.version
24+
$isPreview = $version -like "*preview*"
2425
Write-Output "version=$version" >> $env:GITHUB_OUTPUT
26+
Write-Output "is_preview=$isPreview" >> $env:GITHUB_OUTPUT
2527
Write-Output "Using dbatools.library version: $version"
28+
Write-Output "Is preview version: $isPreview"
2629
27-
- name: Install and cache PowerShell modules
30+
- name: Install and cache PowerShell modules (stable versions)
31+
if: steps.get-version.outputs.is_preview == 'False'
2832
uses: potatoqualitee/psmodulecache@v6.2.1
2933
with:
3034
modules-to-cache: dbatools.library:${{ steps.get-version.outputs.version }}
3135

36+
- name: Install dbatools.library (preview versions)
37+
if: steps.get-version.outputs.is_preview == 'True'
38+
shell: pwsh
39+
run: |
40+
Write-Output "Preview version detected, bypassing PSModuleCache and using install script"
41+
./.github/scripts/install-dbatools-library.ps1
42+
3243
- name: Perform the import
3344
shell: pwsh
3445
run: |

0 commit comments

Comments
 (0)