@@ -154,19 +154,6 @@ jobs:
154154 create-release :
155155 name : Create GitHub Release
156156 needs : validate
157- if : |
158- needs.validate.result == 'success' &&
159- (
160- (
161- github.event_name == 'workflow_dispatch' &&
162- (github.event.inputs.createRelease == 'true' || github.event.inputs.createRelease == '')
163- ) ||
164- (
165- github.event_name == 'workflow_run' &&
166- github.event.workflow_run.conclusion == 'success' &&
167- github.event.workflow_run.event == 'workflow_dispatch'
168- )
169- )
170157 runs-on : ubuntu-latest
171158 steps :
172159 - name : Harden the runner (Audit all outbound calls)
@@ -192,18 +179,6 @@ jobs:
192179 needs :
193180 - validate
194181 - create-release
195- if : |
196- needs.validate.result == 'success' &&
197- (needs['create-release'].result == 'success' || needs['create-release'].result == 'skipped') &&
198- (
199- github.event_name == 'workflow_dispatch' ||
200- github.event_name == 'release' ||
201- (
202- github.event_name == 'workflow_run' &&
203- github.event.workflow_run.conclusion == 'success' &&
204- github.event.workflow_run.event == 'workflow_dispatch'
205- )
206- )
207182 runs-on : windows-latest
208183 env :
209184 PSGALLERY_API_KEY : ${{ secrets.PSGALLERY_API_KEY }}
@@ -257,7 +232,6 @@ jobs:
257232 shell : pwsh
258233
259234 - name : Publish to PowerShell Gallery
260- if : ${{ env.PSGALLERY_API_KEY != '' && (github.event_name != 'workflow_dispatch' || env.PUBLISH_TO_NUGET_INPUT != 'false') }}
261235 run : |
262236 $packagePath = '${{ steps.package.outputs.packagePath }}'
263237 if (-not (Test-Path $packagePath)) {
@@ -293,7 +267,6 @@ jobs:
293267 shell : pwsh
294268
295269 - name : Publish to GitHub Packages
296- if : ${{ env.PACKAGES_TOKEN != '' && (github.event_name != 'workflow_dispatch' || env.PUBLISH_TO_GITHUB_INPUT != 'false') }}
297270 run : |
298271 $packagePath = '${{ steps.package.outputs.packagePath }}'
299272 if (-not (Test-Path $packagePath)) {
0 commit comments