Skip to content

Commit a534048

Browse files
authored
Merge pull request #38 from ntoskrnl7/codex/fix-package-workflow-flags
Fix package workflow dispatch gates and release job checkout
2 parents b91cb8c + ec5e390 commit a534048

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/package.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ jobs:
268268
publish:
269269
name: Publish NuGet
270270
needs: [pack, test-package-driver, test-package-app]
271-
if: startsWith(github.ref, 'refs/tags/v') || (github.event_name == 'workflow_dispatch' && inputs.publish)
271+
if: ${{ (github.event_name != 'workflow_dispatch' && startsWith(github.ref, 'refs/tags/v')) || (github.event_name == 'workflow_dispatch' && inputs.publish) }}
272272
runs-on: windows-2022
273273
permissions:
274274
contents: read
@@ -308,12 +308,14 @@ jobs:
308308
github-release:
309309
name: Upload GitHub Release Assets
310310
needs: [pack, test-package-driver, test-package-app, test-release-native-cmake]
311-
if: startsWith(github.ref, 'refs/tags/v') || (github.event_name == 'workflow_dispatch' && inputs.github_release)
311+
if: ${{ (github.event_name != 'workflow_dispatch' && startsWith(github.ref, 'refs/tags/v')) || (github.event_name == 'workflow_dispatch' && inputs.github_release) }}
312312
runs-on: windows-2022
313313
permissions:
314314
contents: write
315315

316316
steps:
317+
- uses: actions/checkout@v5
318+
317319
- uses: actions/download-artifact@v7
318320
with:
319321
name: crtsys-release-assets-${{ needs.pack.outputs.package_version }}

0 commit comments

Comments
 (0)