From 9d57e57ae511ddc43a2d955758d6c9d7873226b8 Mon Sep 17 00:00:00 2001 From: Tim Carman Date: Mon, 2 Dec 2024 08:55:11 +1100 Subject: [PATCH] v1.4.1 ### Changed * Update GitHub release workflow to add post to Bluesky social platform ### Fixed - Set `$OutputFolderPath` variable as Global variable (Fix [#53](https://github.com/AsBuiltReport/AsBuiltReport.Core/issues/53)) --- .github/workflows/Release.yml | 10 ++++++++++ AsBuiltReport.Core.psd1 | 4 ++-- CHANGELOG.md | 8 ++++++++ Src/Public/New-AsBuiltReport.ps1 | 5 +++++ 4 files changed, 25 insertions(+), 2 deletions(-) diff --git a/.github/workflows/Release.yml b/.github/workflows/Release.yml index b17c290..3726d44 100644 --- a/.github/workflows/Release.yml +++ b/.github/workflows/Release.yml @@ -41,3 +41,13 @@ jobs: 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 }} + bsky-post: + needs: publish-to-gallery + runs-on: ubuntu-latest + steps: + - uses: zentered/bluesky-post-action@v0.1.0 + with: + post: "[New Release] ${{ github.event.repository.name }} ${{ github.event.release.tag_name }}! Check out what's new! ${{ github.event.release.html_url }} #AsBuiltReport #PowerShell" + env: + BSKY_IDENTIFIER: ${{ secrets.BSKY_IDENTIFIER }} + BSKY_PASSWORD: ${{ secrets.BSKY_PASSWORD }} \ No newline at end of file diff --git a/AsBuiltReport.Core.psd1 b/AsBuiltReport.Core.psd1 index c1096a4..ca428bc 100644 --- a/AsBuiltReport.Core.psd1 +++ b/AsBuiltReport.Core.psd1 @@ -13,7 +13,7 @@ # Version number of this module. - ModuleVersion = '1.4.0' + ModuleVersion = '1.4.1' # Supported PSEditions # CompatiblePSEditions = 'Desktop' @@ -110,7 +110,7 @@ ProjectUri = 'https://github.com/AsBuiltReport/AsBuiltReport.Core' # A URL to an icon representing this module. - IconUri = 'https://raw.githubusercontent.com/AsBuiltReport/AsBuiltReport/master/AsBuiltReport.png' + IconUri = 'https://github.com/AsBuiltReport.png' # ReleaseNotes of this module ReleaseNotes = 'https://raw.githubusercontent.com/AsBuiltReport/AsBuiltReport.Core/master/CHANGELOG.md' diff --git a/CHANGELOG.md b/CHANGELOG.md index ca0d60b..55f45f4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [1.4.1] - 2024-12-02 + +### Changed +* Update GitHub release workflow to add post to Bluesky social platform + +### Fixed +- Set `$OutputFolderPath` variable as Global variable (Fix [#53](https://github.com/AsBuiltReport/AsBuiltReport.Core/issues/53)) + ## [1.4.0] - 2024-03-29 ### Added diff --git a/Src/Public/New-AsBuiltReport.ps1 b/Src/Public/New-AsBuiltReport.ps1 index 562d055..fc2731f 100644 --- a/Src/Public/New-AsBuiltReport.ps1 +++ b/Src/Public/New-AsBuiltReport.ps1 @@ -277,6 +277,11 @@ function New-AsBuiltReport { $Global:ReportConfigFilePath = $ReportConfigFilePath } + # Set $OutputFolderPath as Global scope + if ($OutputFolderPath) { + $Global:OutputFolderPath = $OutputFolderPath + } + # If StyleFilePath was specified, ensure the file provided in the path exists, otherwise exit with error if ($StyleFilePath) { if (-not (Test-Path -Path $StyleFilePath)) {