From 818f27d0bcdb2d6673ddd632c856aa44daa7a678 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Przemys=C5=82aw=20K=C5=82ys?= Date: Sun, 10 Aug 2025 09:15:02 +0200 Subject: [PATCH 1/2] ci: update PowerShell workflow --- .github/workflows/test-powershell.yml | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/.github/workflows/test-powershell.yml b/.github/workflows/test-powershell.yml index ae9852f..3e8ecce 100644 --- a/.github/workflows/test-powershell.yml +++ b/.github/workflows/test-powershell.yml @@ -1,8 +1,17 @@ -name: Test PowerShell Module (All) +name: Test PowerShell -# This workflow is disabled but ready for use on: - workflow_dispatch: + push: + branches: + - master + paths-ignore: + - '*.md' + - 'Docs/**' + - 'Examples/**' + - '.gitignore' + pull_request: + branches: + - master env: DOTNET_VERSION: '8.x' @@ -12,10 +21,12 @@ jobs: refresh-psd1: name: 'Refresh PSD1' runs-on: windows-latest - timeout-minutes: 10 steps: - name: Checkout code uses: actions/checkout@v4 + with: + fetch-depth: 0 + ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.ref || github.ref }} - name: Setup PowerShell modules run: | @@ -47,10 +58,10 @@ jobs: path: PSWriteOffice.psd1 test-windows-ps5: + if: false # Temporarily disabled needs: refresh-psd1 name: 'Windows PowerShell 5.1' runs-on: windows-latest - timeout-minutes: 10 steps: - name: Checkout code uses: actions/checkout@v4 @@ -86,7 +97,6 @@ jobs: needs: refresh-psd1 name: 'Windows PowerShell 7' runs-on: windows-latest - timeout-minutes: 10 steps: - name: Checkout code uses: actions/checkout@v4 @@ -122,7 +132,6 @@ jobs: needs: refresh-psd1 name: 'Ubuntu PowerShell 7' runs-on: ubuntu-latest - timeout-minutes: 10 steps: - name: Checkout code uses: actions/checkout@v4 @@ -165,7 +174,6 @@ jobs: needs: refresh-psd1 name: 'macOS PowerShell 7' runs-on: macos-latest - timeout-minutes: 10 steps: - name: Checkout code uses: actions/checkout@v4 From de312e6ff36601c9cb147660d7a76004a660933e Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sun, 10 Aug 2025 07:23:52 +0000 Subject: [PATCH 2/2] chore: regenerate psd1 --- PSWriteOffice.psd1 | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/PSWriteOffice.psd1 b/PSWriteOffice.psd1 index 824a203..d08d29e 100644 --- a/PSWriteOffice.psd1 +++ b/PSWriteOffice.psd1 @@ -1,10 +1,10 @@ @{ AliasesToExport = @() Author = 'Przemyslaw Klys' - CmdletsToExport = @('Get-OfficeWord', 'New-OfficeWord', 'Close-OfficeWord', 'Save-OfficeWord', 'Remove-OfficeWordFooter', 'Remove-OfficeWordHeader', 'New-OfficeWordText', 'New-OfficeWordList', 'New-OfficeWordListItem', 'New-OfficeWordTable', 'ConvertFrom-HTMLtoWord', 'Get-OfficeExcel', 'New-OfficeExcel', 'New-OfficeExcelWorkSheet', 'Get-OfficeExcelWorkSheet', 'Get-OfficeExcelValue', 'New-OfficeExcelValue', 'Get-OfficeExcelWorkSheetData', 'Close-OfficeExcel', 'Save-OfficeExcel', 'Export-OfficeExcel', 'Import-OfficeExcel', 'Get-OfficePowerPoint', 'New-OfficePowerPoint', 'Save-OfficePowerPoint', 'Add-OfficePowerPointSlide', 'Remove-OfficePowerPointSlide', 'Merge-OfficePowerPoint', 'Get-OfficePowerPointSlide', 'Add-OfficePowerPointTextBox', 'Set-OfficePowerPointSlideTitle', 'New-OfficeExcelTable', 'Set-OfficeExcelCellStyle', 'Set-OfficeExcelWorkSheetStyle') + CmdletsToExport = @('Close-OfficeWord', 'ConvertFrom-HTMLtoWord', 'Get-OfficeWord', 'New-OfficeWord', 'New-OfficeWordList', 'New-OfficeWordListItem', 'New-OfficeWordTable', 'New-OfficeWordText', 'Remove-OfficeWordFooter', 'Remove-OfficeWordHeader', 'Save-OfficeWord', 'Add-OfficePowerPointSlide', 'Add-OfficePowerPointTextBox', 'Get-OfficePowerPoint', 'Get-OfficePowerPointSlide', 'Merge-OfficePowerPoint', 'New-OfficePowerPoint', 'Remove-OfficePowerPointSlide', 'Save-OfficePowerPoint', 'Set-OfficePowerPointSlideTitle', 'Close-OfficeExcel', 'Export-OfficeExcel', 'Get-OfficeExcel', 'Get-OfficeExcelValue', 'Get-OfficeExcelWorkSheet', 'Get-OfficeExcelWorkSheetData', 'Import-OfficeExcel', 'New-OfficeExcel', 'New-OfficeExcelTable', 'New-OfficeExcelValue', 'New-OfficeExcelWorkSheet', 'Save-OfficeExcel', 'Set-OfficeExcelCellStyle', 'Set-OfficeExcelWorkSheetStyle') CompanyName = 'Evotec' CompatiblePSEditions = @('Desktop', 'Core') - Copyright = '(c) 2011 - 2024 Przemyslaw Klys @ Evotec. All rights reserved.' + Copyright = '(c) 2011 - 2025 Przemyslaw Klys @ Evotec. All rights reserved.' Description = 'Experimental PowerShell Module to create and edit Microsoft Word, Microsoft Excel, and Microsoft PowerPoint documents without having Microsoft Office installed.' DotNetFrameworkVersion = '4.7.2' FunctionsToExport = @() @@ -13,17 +13,11 @@ PowerShellVersion = '5.1' PrivateData = @{ PSData = @{ - ExternalModuleDependencies = @('Microsoft.PowerShell.Utility', 'Microsoft.PowerShell.Management') - IconUri = 'https://evotec.xyz/wp-content/uploads/2018/10/PSWriteWord.png' - LicenseUri = 'https://github.com/EvotecIT/PSWriteOffice/blob/master/License' - ProjectUri = 'https://github.com/EvotecIT/PSWriteOffice' - Tags = @('word', 'docx', 'write', 'PSWord', 'office', 'windows', 'doc', 'pswriteword', 'linux', 'macos') + IconUri = 'https://evotec.xyz/wp-content/uploads/2018/10/PSWriteWord.png' + LicenseUri = 'https://github.com/EvotecIT/PSWriteOffice/blob/master/License' + ProjectUri = 'https://github.com/EvotecIT/PSWriteOffice' + Tags = @('word', 'docx', 'write', 'PSWord', 'office', 'windows', 'doc', 'pswriteword', 'linux', 'macos') } } - RequiredModules = @(@{ - Guid = 'ee272aa8-baaa-4edf-9f45-b6d6f7d844fe' - ModuleName = 'PSSharedGoods' - ModuleVersion = '0.0.297' - }, 'Microsoft.PowerShell.Utility', 'Microsoft.PowerShell.Management') RootModule = 'PSWriteOffice.psm1' } \ No newline at end of file