Skip to content

Commit 8111813

Browse files
authored
Merge pull request #6 from AsBuiltReport/dev
Fix multiple issues before release
2 parents 187f34c + 1c00c40 commit 8111813

File tree

5 files changed

+66
-66
lines changed

5 files changed

+66
-66
lines changed
Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
name: PSScriptAnalyzer
22
on: [push, pull_request]
33
jobs:
4-
lint:
5-
name: Run PSScriptAnalyzer
6-
runs-on: ubuntu-latest
7-
steps:
8-
- uses: actions/checkout@v4
9-
- name: lint
10-
uses: devblackops/github-action-psscriptanalyzer@master
11-
with:
12-
sendComment: true
13-
failOnErrors: true
14-
failOnWarnings: false
15-
failOnInfos: false
16-
repoToken: ${{ secrets.GITHUB_TOKEN }}
17-
settingsPath: .github/workflows/PSScriptAnalyzerSettings.psd1
4+
lint:
5+
name: Run PSScriptAnalyzer
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@v5
9+
- name: lint
10+
uses: devblackops/github-action-psscriptanalyzer@master
11+
with:
12+
sendComment: true
13+
failOnErrors: true
14+
failOnWarnings: false
15+
failOnInfos: false
16+
repoToken: ${{ secrets.GITHUB_TOKEN }}
17+
settingsPath: .github/workflows/PSScriptAnalyzerSettings.psd1

.github/workflows/Release.yml

Lines changed: 48 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,53 @@
11
name: Publish PowerShell Module
22

33
on:
4-
release:
5-
types: [published]
4+
release:
5+
types: [published]
66

77
jobs:
8-
publish-to-gallery:
9-
runs-on: windows-latest
10-
steps:
11-
- uses: actions/checkout@v5
12-
- name: Set PSRepository to Trusted for PowerShell Gallery
13-
shell: pwsh
14-
run: |
15-
Set-PSRepository -Name PSGallery -InstallationPolicy Trusted
16-
- name: Install AsBuiltReport.Core module
17-
shell: pwsh
18-
run: |
19-
Install-Module -Name AsBuiltReport.Core -Repository PSGallery -AllowPrerelease -Force
20-
- name: Test Module Manifest
21-
shell: pwsh
22-
run: |
23-
Test-ModuleManifest .\AsBuiltReport.System.Resources.psd1
24-
- name: Publish module to PowerShell Gallery
25-
shell: pwsh
26-
run: |
27-
Publish-Module -Path ./ -NuGetApiKey ${{ secrets.PSGALLERY_API_KEY }} -Verbose
28-
tweet:
29-
needs: publish-to-gallery
30-
runs-on: ubuntu-latest
31-
steps:
32-
- uses: Eomm/why-don-t-you-tweet@v2
33-
# We don't want to tweet if the repository is not a public one
34-
if: ${{ !github.event.repository.private }}
35-
with:
36-
# GitHub event payload
37-
# https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#release
38-
tweet-message: "[New Release] ${{ github.event.repository.name }} ${{ github.event.release.tag_name }}! Check out what's new! ${{ github.event.release.html_url }} #System #Resources #AsBuiltReport #PowerShell"
39-
env:
40-
TWITTER_CONSUMER_API_KEY: ${{ secrets.TWITTER_CONSUMER_API_KEY }}
41-
TWITTER_CONSUMER_API_SECRET: ${{ secrets.TWITTER_CONSUMER_API_SECRET }}
42-
TWITTER_ACCESS_TOKEN: ${{ secrets.TWITTER_ACCESS_TOKEN }}
43-
TWITTER_ACCESS_TOKEN_SECRET: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }}
44-
bsky-post:
45-
needs: publish-to-gallery
46-
runs-on: ubuntu-latest
47-
steps:
48-
- uses: zentered/[email protected]
49-
with:
50-
post: "[New Release] ${{ github.event.repository.name }} ${{ github.event.release.tag_name }}! Check out what's new! ${{ github.event.release.html_url }} #System #Resources #AsBuiltReport #PowerShell"
51-
env:
52-
BSKY_IDENTIFIER: ${{ secrets.BSKY_IDENTIFIER }}
53-
BSKY_PASSWORD: ${{ secrets.BSKY_PASSWORD }}
8+
publish-to-gallery:
9+
runs-on: windows-latest
10+
steps:
11+
- uses: actions/checkout@v5
12+
- name: Set PSRepository to Trusted for PowerShell Gallery
13+
shell: pwsh
14+
run: |
15+
Set-PSRepository -Name PSGallery -InstallationPolicy Trusted
16+
- name: Install AsBuiltReport.Core module
17+
shell: pwsh
18+
run: |
19+
Install-Module -Name AsBuiltReport.Core -Repository PSGallery -Force
20+
- name: Test Module Manifest
21+
shell: pwsh
22+
run: |
23+
Test-ModuleManifest .\AsBuiltReport.System.Resources.psd1
24+
- name: Publish module to PowerShell Gallery
25+
shell: pwsh
26+
run: |
27+
Publish-Module -Path ./ -NuGetApiKey ${{ secrets.PSGALLERY_API_KEY }} -Verbose
28+
tweet:
29+
needs: publish-to-gallery
30+
runs-on: ubuntu-latest
31+
steps:
32+
- uses: Eomm/why-don-t-you-tweet@v2
33+
# We don't want to tweet if the repository is not a public one
34+
if: ${{ !github.event.repository.private }}
35+
with:
36+
# GitHub event payload
37+
# https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#release
38+
tweet-message: "[New Release] ${{ github.event.repository.name }} ${{ github.event.release.tag_name }}! Check out what's new! ${{ github.event.release.html_url }} #System #Resources #AsBuiltReport #PowerShell"
39+
env:
40+
TWITTER_CONSUMER_API_KEY: ${{ secrets.TWITTER_CONSUMER_API_KEY }}
41+
TWITTER_CONSUMER_API_SECRET: ${{ secrets.TWITTER_CONSUMER_API_SECRET }}
42+
TWITTER_ACCESS_TOKEN: ${{ secrets.TWITTER_ACCESS_TOKEN }}
43+
TWITTER_ACCESS_TOKEN_SECRET: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }}
44+
bsky-post:
45+
needs: publish-to-gallery
46+
runs-on: ubuntu-latest
47+
steps:
48+
- uses: zentered/[email protected]
49+
with:
50+
post: "[New Release] ${{ github.event.repository.name }} ${{ github.event.release.tag_name }}! Check out what's new! ${{ github.event.release.html_url }} #System #Resources #AsBuiltReport #PowerShell"
51+
env:
52+
BSKY_IDENTIFIER: ${{ secrets.BSKY_IDENTIFIER }}
53+
BSKY_PASSWORD: ${{ secrets.BSKY_PASSWORD }}

.github/workflows/Stale.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
stale:
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/stale@v9
10+
- uses: actions/stale@v10
1111
with:
1212
stale-issue-message: 'This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.'
1313
days-before-stale: 30

AsBuiltReport.System.Resources.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
RequiredModules = @(
5656
@{
5757
ModuleName = 'AsBuiltReport.Core';
58-
ModuleVersion = '1.5.0'
58+
ModuleVersion = '1.4.3'
5959
}
6060
)
6161

Src/Public/Invoke-AsBuiltReport.System.Resources.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ function Invoke-AsBuiltReport.System.Resources {
1515
https://github.com/AsBuiltReport/AsBuiltReport.System.Resources
1616
#>
1717

18-
[Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSAvoidUsingWriteHost", "", Scope = "Script")]
19-
[Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSUseSingularNouns", "", Scope = "Script")]
18+
[Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSAvoidUsingWriteHost", "", Scope = "function")]
19+
[Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSUseSingularNouns", "", Scope = "function")]
2020

2121

2222
# Do not remove or add to these parameters

0 commit comments

Comments
 (0)