Skip to content

Commit 4b93505

Browse files
committed
Update PSScriptAnalyzer settings, enhance Release workflow, and modify output messages in Invoke-AsBuiltReport script
1 parent 7c0fe0b commit 4b93505

File tree

5 files changed

+38
-37
lines changed

5 files changed

+38
-37
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

CHANGELOG.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,15 @@ 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-05-XX
10+
## [0.3.12] - 2025-07-25
1111

1212
### Changed
1313

1414
- Bump version to 0.3.12
1515
- Refactor diagram export logic for improved clarity
1616
- Bump the `Diagrammer.Core` module to version `0.2.27`.
17-
17+
- Update PSScriptAnalyzer settings, enhance Release workflow, and modify output messages in Invoke-AsBuiltReport script
18+
- Test with VB365 v8.1.2.180 P20250619
1819

1920
## [0.3.11] - 2025-05-05
2021

Src/Private/Export-AbrVb365Diagram.ps1

Lines changed: 1 addition & 2 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

Src/Public/Invoke-AsBuiltReport.Veeam.VB365.ps1

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ function Invoke-AsBuiltReport.Veeam.VB365 {
3030
break
3131
}
3232

33-
Write-PScriboMessage -Plugin "Module" -IsWarning -Message "Please refer to the AsBuiltReport.Veeam.VB365 github website for more detailed information about this project."
34-
Write-PScriboMessage -Plugin "Module" -IsWarning -Message "Do not forget to update your report configuration file after each new version release."
35-
Write-PScriboMessage -Plugin "Module" -IsWarning -Message "Documentation: https://github.com/AsBuiltReport/AsBuiltReport.Veeam.VB365"
36-
Write-PScriboMessage -Plugin "Module" -IsWarning -Message "Issues or bug reporting: https://github.com/AsBuiltReport/AsBuiltReport.Veeam.VB365/issues"
37-
Write-PScriboMessage -Plugin "Module" -IsWarning -Message "This project is community maintained and has no sponsorship from Veeam, its employees or any of its affiliates."
33+
Write-Host "- Please refer to the AsBuiltReport.Veeam.VB365 github website for more detailed information about this project."
34+
Write-Host "- Do not forget to update your report configuration file after each new version release."
35+
Write-Host "- Documentation: https://github.com/AsBuiltReport/AsBuiltReport.Veeam.VB365"
36+
Write-Host "- Issues or bug reporting: https://github.com/AsBuiltReport/AsBuiltReport.Veeam.VB365/issues"
37+
Write-Host "- This project is community maintained and has no sponsorship from Veeam, its employees or any of its affiliates."
3838

3939
# Check the version of the dependency modules
4040
$ModuleArray = @('AsBuiltReport.Veeam.VB365', 'Diagrammer.Core')

0 commit comments

Comments
 (0)