Skip to content

Commit 0d0bb05

Browse files
2 parents 17655b6 + 65397ba commit 0d0bb05

File tree

2 files changed

+22
-20
lines changed

2 files changed

+22
-20
lines changed

.github/workflows/test-powershell.yml

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,17 @@
1-
name: Test PowerShell Module (All)
1+
name: Test PowerShell
22

3-
# This workflow is disabled but ready for use
43
on:
5-
workflow_dispatch:
4+
push:
5+
branches:
6+
- master
7+
paths-ignore:
8+
- '*.md'
9+
- 'Docs/**'
10+
- 'Examples/**'
11+
- '.gitignore'
12+
pull_request:
13+
branches:
14+
- master
615

716
env:
817
DOTNET_VERSION: '8.x'
@@ -12,10 +21,12 @@ jobs:
1221
refresh-psd1:
1322
name: 'Refresh PSD1'
1423
runs-on: windows-latest
15-
timeout-minutes: 10
1624
steps:
1725
- name: Checkout code
1826
uses: actions/checkout@v4
27+
with:
28+
fetch-depth: 0
29+
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.ref || github.ref }}
1930

2031
- name: Setup PowerShell modules
2132
run: |
@@ -47,10 +58,10 @@ jobs:
4758
path: PSWriteOffice.psd1
4859

4960
test-windows-ps5:
61+
if: false # Temporarily disabled
5062
needs: refresh-psd1
5163
name: 'Windows PowerShell 5.1'
5264
runs-on: windows-latest
53-
timeout-minutes: 10
5465
steps:
5566
- name: Checkout code
5667
uses: actions/checkout@v4
@@ -86,7 +97,6 @@ jobs:
8697
needs: refresh-psd1
8798
name: 'Windows PowerShell 7'
8899
runs-on: windows-latest
89-
timeout-minutes: 10
90100
steps:
91101
- name: Checkout code
92102
uses: actions/checkout@v4
@@ -122,7 +132,6 @@ jobs:
122132
needs: refresh-psd1
123133
name: 'Ubuntu PowerShell 7'
124134
runs-on: ubuntu-latest
125-
timeout-minutes: 10
126135
steps:
127136
- name: Checkout code
128137
uses: actions/checkout@v4
@@ -165,7 +174,6 @@ jobs:
165174
needs: refresh-psd1
166175
name: 'macOS PowerShell 7'
167176
runs-on: macos-latest
168-
timeout-minutes: 10
169177
steps:
170178
- name: Checkout code
171179
uses: actions/checkout@v4

PSWriteOffice.psd1

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
@{
22
AliasesToExport = @()
33
Author = 'Przemyslaw Klys'
4-
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')
4+
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')
55
CompanyName = 'Evotec'
66
CompatiblePSEditions = @('Desktop', 'Core')
7-
Copyright = '(c) 2011 - 2024 Przemyslaw Klys @ Evotec. All rights reserved.'
7+
Copyright = '(c) 2011 - 2025 Przemyslaw Klys @ Evotec. All rights reserved.'
88
Description = 'Experimental PowerShell Module to create and edit Microsoft Word, Microsoft Excel, and Microsoft PowerPoint documents without having Microsoft Office installed.'
99
DotNetFrameworkVersion = '4.7.2'
1010
FunctionsToExport = @()
@@ -13,17 +13,11 @@
1313
PowerShellVersion = '5.1'
1414
PrivateData = @{
1515
PSData = @{
16-
ExternalModuleDependencies = @('Microsoft.PowerShell.Utility', 'Microsoft.PowerShell.Management')
17-
IconUri = 'https://evotec.xyz/wp-content/uploads/2018/10/PSWriteWord.png'
18-
LicenseUri = 'https://github.com/EvotecIT/PSWriteOffice/blob/master/License'
19-
ProjectUri = 'https://github.com/EvotecIT/PSWriteOffice'
20-
Tags = @('word', 'docx', 'write', 'PSWord', 'office', 'windows', 'doc', 'pswriteword', 'linux', 'macos')
16+
IconUri = 'https://evotec.xyz/wp-content/uploads/2018/10/PSWriteWord.png'
17+
LicenseUri = 'https://github.com/EvotecIT/PSWriteOffice/blob/master/License'
18+
ProjectUri = 'https://github.com/EvotecIT/PSWriteOffice'
19+
Tags = @('word', 'docx', 'write', 'PSWord', 'office', 'windows', 'doc', 'pswriteword', 'linux', 'macos')
2120
}
2221
}
23-
RequiredModules = @(@{
24-
Guid = 'ee272aa8-baaa-4edf-9f45-b6d6f7d844fe'
25-
ModuleName = 'PSSharedGoods'
26-
ModuleVersion = '0.0.297'
27-
}, 'Microsoft.PowerShell.Utility', 'Microsoft.PowerShell.Management')
2822
RootModule = 'PSWriteOffice.psm1'
2923
}

0 commit comments

Comments
 (0)