-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #40 from AsBuiltReport/dev
v1.2.0
- Loading branch information
Showing
10 changed files
with
287 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
name: PSScriptAnalyzer | ||
on: [push, pull_request] | ||
jobs: | ||
lint: | ||
name: Run PSScriptAnalyzer | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: lint | ||
uses: devblackops/github-action-psscriptanalyzer@master | ||
with: | ||
sendComment: true | ||
failOnErrors: true | ||
failOnWarnings: false | ||
failOnInfos: false | ||
repoToken: ${{ secrets.GITHUB_TOKEN }} | ||
settingsPath: .github/workflows/PSScriptAnalyzerSettings.psd1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
@{ | ||
ExcludeRules = @( | ||
'PSUseToExportFieldsInManifest', | ||
'PSReviewUnusedParameter', | ||
'PSUseDeclaredVarsMoreThanAssignments', | ||
'PSAvoidGlobalVars' | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Publish PowerShell Module | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
publish-to-gallery: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set PSRepository to Trusted for PowerShell Gallery | ||
shell: pwsh | ||
run: | | ||
Set-PSRepository -Name PSGallery -InstallationPolicy Trusted | ||
- name: Install PScribo module | ||
shell: pwsh | ||
run: | | ||
Install-Module -Name PScribo -Repository PSGallery -Force | ||
- name: Publish module to PowerShell Gallery | ||
shell: pwsh | ||
run: | | ||
Publish-Module -Path ./ -NuGetApiKey ${{ secrets.PSGALLERY_API_KEY }} -Verbose | ||
tweet: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: Eomm/why-don-t-you-tweet@v1 | ||
# We don't want to tweet if the repository is not a public one | ||
if: ${{ !github.event.repository.private }} | ||
with: | ||
# GitHub event payload | ||
# https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#release | ||
tweet-message: "[New Release] ${{ github.event.repository.name }} ${{ github.event.release.tag_name }}! Check out what's new! ${{ github.event.release.html_url }} #AsBuiltReport #PowerShell" | ||
env: | ||
TWITTER_CONSUMER_API_KEY: ${{ secrets.TWITTER_CONSUMER_API_KEY }} | ||
TWITTER_CONSUMER_API_SECRET: ${{ secrets.TWITTER_CONSUMER_API_SECRET }} | ||
TWITTER_ACCESS_TOKEN: ${{ secrets.TWITTER_ACCESS_TOKEN }} | ||
TWITTER_ACCESS_TOKEN_SECRET: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.