Skip to content

Commit 9f3073c

Browse files
🩹 [Patch]: Simplify Publish-Module step by removing unused parameters and adding GH_TOKEN environment variable
1 parent f5eba0b commit 9f3073c

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

ā€Ž.github/workflows/workflow.ymlā€Ž

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -286,15 +286,13 @@ jobs:
286286
287287
- name: Publish module
288288
uses: PSModule/Publish-PSModule@v2
289+
env:
290+
GH_TOKEN: ${{ github.token }}
289291
with:
290292
Name: ${{ fromJson(needs.Get-Settings.outputs.Settings).Name }}
291293
ModulePath: ${{ inputs.WorkingDirectory }}/outputs/module
292294
APIKey: ${{ secrets.APIKEY }}
293295
WhatIf: ${{ github.repository == 'PSModule/Process-PSModule' }}
294-
Debug: ${{ inputs.Debug }}
295-
Prerelease: ${{ inputs.Prerelease }}
296-
Verbose: ${{ inputs.Verbose }}
297-
Version: ${{ inputs.Version }}
298296
AutoCleanup: ${{ fromJson(needs.Get-Settings.outputs.Settings).Publish.Module.AutoCleanup }}
299297
AutoPatching: ${{ fromJson(needs.Get-Settings.outputs.Settings).Publish.Module.AutoPatching }}
300298
DatePrereleaseFormat: ${{ fromJson(needs.Get-Settings.outputs.Settings).Publish.Module.DatePrereleaseFormat }}
@@ -304,3 +302,4 @@ jobs:
304302
MinorLabels: ${{ fromJson(needs.Get-Settings.outputs.Settings).Publish.Module.MinorLabels }}
305303
PatchLabels: ${{ fromJson(needs.Get-Settings.outputs.Settings).Publish.Module.PatchLabels }}
306304
VersionPrefix: ${{ fromJson(needs.Get-Settings.outputs.Settings).Publish.Module.VersionPrefix }}
305+
WorkingDirectory: ${{ inputs.WorkingDirectory }}

0 commit comments

Comments
Ā (0)