Skip to content

Commit 69e05af

Browse files
committed
Simplify input usage
1 parent 626f42c commit 69e05af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/build-python-packages.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
- name: Generate execution matrix
4040
id: generate-matrix
4141
run: |
42-
[String[]]$configurations = "${{ github.event.inputs.platforms || 'ubuntu-18.04,ubuntu-20.04,ubuntu-22.04,macos-11,windows-2019_x64,windows-2019_x86' }}".Split(",").Trim()
42+
[String[]]$configurations = "${{ inputs.platforms || 'ubuntu-18.04,ubuntu-20.04,ubuntu-22.04,macos-11,windows-2019_x64,windows-2019_x86' }}".Split(",").Trim()
4343
$matrix = @()
4444
4545
foreach ($configuration in $configurations) {
@@ -165,7 +165,7 @@ jobs:
165165

166166
publish_release:
167167
name: Publish release
168-
if: github.event_name == 'workflow_dispatch' && github.event.inputs.PUBLISH_RELEASES == 'true'
168+
if: github.event_name == 'workflow_dispatch' && inputs.PUBLISH_RELEASES == 'true'
169169
needs: test_python
170170
runs-on: ubuntu-latest
171171
steps:

0 commit comments

Comments
 (0)