Skip to content

Commit 2e31a49

Browse files
authored
Merge pull request #56 from rebelinux/dev
v0.3.12
2 parents 3914aac + 4b93505 commit 2e31a49

File tree

7 files changed

+89
-75
lines changed

7 files changed

+89
-75
lines changed

.github/workflows/PSScriptAnalyzerSettings.psd1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
'PSUseToExportFieldsInManifest',
44
'PSReviewUnusedParameter',
55
'PSUseDeclaredVarsMoreThanAssignments',
6-
'PSAvoidGlobalVars'
6+
'PSAvoidGlobalVars',
7+
'PSAvoidUsingWriteHost'
78
)
89
}

.github/workflows/Release.yml

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66

77
jobs:
88
publish-to-gallery:
9-
runs-on: windows-2019
9+
runs-on: windows-2022
1010
steps:
1111
- uses: actions/checkout@v4
1212
- name: Set PSRepository to Trusted for PowerShell Gallery
@@ -33,30 +33,30 @@ jobs:
3333
shell: pwsh
3434
run: |
3535
Publish-Module -Path ./ -NuGetApiKey ${{ secrets.PSGALLERY_API_KEY }} -Verbose
36-
# tweet:
37-
# needs: publish-to-gallery
38-
# runs-on: ubuntu-latest
39-
# steps:
40-
# - uses: Eomm/why-don-t-you-tweet@v2
41-
# # We don't want to tweet if the repository is not a public one
42-
# if: ${{ !github.event.repository.private }}
43-
# with:
44-
# # GitHub event payload
45-
# # https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#release
46-
# tweet-message: "[New Release] ${{ github.event.repository.name }} ${{ github.event.release.tag_name }}! Check out what's new! ${{ github.event.release.html_url }} #Veeam #AsBuiltReport #PowerShell #VeeamVanguard #VeeamLegend"
47-
# env:
48-
# TWITTER_CONSUMER_API_KEY: ${{ secrets.TWITTER_CONSUMER_API_KEY }}
49-
# TWITTER_CONSUMER_API_SECRET: ${{ secrets.TWITTER_CONSUMER_API_SECRET }}
50-
# TWITTER_ACCESS_TOKEN: ${{ secrets.TWITTER_ACCESS_TOKEN }}
51-
# TWITTER_ACCESS_TOKEN_SECRET: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }}
52-
# bsky-post:
53-
# needs: publish-to-gallery
54-
# runs-on: ubuntu-latest
55-
# steps:
56-
# - uses: zentered/[email protected]
57-
# with:
58-
# post: "[New Release] ${{ github.event.repository.name }} ${{ github.event.release.tag_name }}! Check out what's new! ${{ github.event.release.html_url }} #Veeam #AsBuiltReport #PowerShell #VeeamVanguard #VeeamLegend"
59-
# env:
60-
# BSKY_IDENTIFIER: ${{ secrets.BSKY_IDENTIFIER }}
61-
# BSKY_PASSWORD: ${{ secrets.BSKY_PASSWORD }}
36+
tweet:
37+
needs: publish-to-gallery
38+
runs-on: ubuntu-latest
39+
steps:
40+
- uses: Eomm/why-don-t-you-tweet@v2
41+
# We don't want to tweet if the repository is not a public one
42+
if: ${{ !github.event.repository.private }}
43+
with:
44+
# GitHub event payload
45+
# https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#release
46+
tweet-message: "[New Release] ${{ github.event.repository.name }} ${{ github.event.release.tag_name }}! Check out what's new! ${{ github.event.release.html_url }} c"
47+
env:
48+
TWITTER_CONSUMER_API_KEY: ${{ secrets.TWITTER_CONSUMER_API_KEY }}
49+
TWITTER_CONSUMER_API_SECRET: ${{ secrets.TWITTER_CONSUMER_API_SECRET }}
50+
TWITTER_ACCESS_TOKEN: ${{ secrets.TWITTER_ACCESS_TOKEN }}
51+
TWITTER_ACCESS_TOKEN_SECRET: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }}
52+
bsky-post:
53+
needs: publish-to-gallery
54+
runs-on: ubuntu-latest
55+
steps:
56+
- uses: zentered/[email protected]
57+
with:
58+
post: "[New Release] ${{ github.event.repository.name }} ${{ github.event.release.tag_name }}! Check out what's new! ${{ github.event.release.html_url }} #Veeam #AsBuiltReport #PowerShell #VeeamVanguard #VeeamLegend"
59+
env:
60+
BSKY_IDENTIFIER: ${{ secrets.BSKY_IDENTIFIER }}
61+
BSKY_PASSWORD: ${{ secrets.BSKY_PASSWORD }}
6262

AsBuiltReport.Veeam.VB365.psd1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
RootModule = 'AsBuiltReport.Veeam.VB365.psm1'
1313

1414
# Version number of this module.
15-
ModuleVersion = '0.3.11'
15+
ModuleVersion = '0.3.12'
1616

1717
# Supported PSEditions
1818
# CompatiblePSEditions = @()
@@ -63,7 +63,7 @@
6363
},
6464
@{
6565
ModuleName = 'Diagrammer.Core';
66-
ModuleVersion = '0.2.25'
66+
ModuleVersion = '0.2.27'
6767
}
6868
)
6969

@@ -86,10 +86,10 @@
8686
FunctionsToExport = @('Invoke-AsBuiltReport.Veeam.VB365')
8787

8888
# Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export.
89-
# CmdletsToExport = '*'
89+
CmdletsToExport = @()
9090

9191
# Variables to export from this module
92-
# VariablesToExport = '*'
92+
VariablesToExport = @()
9393

9494
# Aliases to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no aliases to export.
9595
# AliasesToExport = '*'

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
##### This project is community maintained and has no sponsorship from Veeam, its employees or any of its affiliates.
99

10+
## [0.3.12] - 2025-07-25
11+
12+
### Changed
13+
14+
- Bump version to 0.3.12
15+
- Refactor diagram export logic for improved clarity
16+
- Bump the `Diagrammer.Core` module to version `0.2.27`.
17+
- Update PSScriptAnalyzer settings, enhance Release workflow, and modify output messages in Invoke-AsBuiltReport script
18+
- Test with VB365 v8.1.2.180 P20250619
19+
1020
## [0.3.11] - 2025-05-05
1121

1222
### Added

Src/Private/Export-AbrVb365Diagram.ps1

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,7 @@ function Export-AbrVb365Diagram {
9797

9898
if ($Options.EnableDiagramDebug) {
9999

100-
$DiagramParams.Add('EnableEdgeDebug', $True)
101-
$DiagramParams.Add('EnableSubGraphDebug', $True)
100+
$DiagramParams.Add('DraftMode', $True)
102101

103102
}
104103

@@ -132,8 +131,8 @@ function Export-AbrVb365Diagram {
132131
$Graph = Get-AbrVb365Diagram
133132
$Diagram = New-Diagrammer @DiagramParams -InputObject $Graph
134133
if ($Diagram) {
135-
If ((Get-DiaImagePercent -GraphObj $Diagram).Width -gt 1500) { $ImagePrty = 20 } else { $ImagePrty = 50 }
136-
Section -Style Heading1 "Infrastructure Diagram." -Orientation Landscape {
134+
If ((Get-DiaImagePercent -GraphObj $Diagram).Width -gt 800) { $ImagePrty = 15 } else { $ImagePrty = 30 }
135+
Section -Style Heading2 "Infrastructure Diagram." {
137136
Image -Base64 $Diagram -Text "Veeam Backup for Microsoft 365 Diagram" -Percent $ImagePrty -Align Center
138137
Paragraph "Image preview: Opens the image in a new tab to view it at full resolution." -Tabs 2
139138
}

0 commit comments

Comments
 (0)