Skip to content

Commit

Permalink
[DO NOT MERGE] wix update
Browse files Browse the repository at this point in the history
Signed-off-by: Lokesh Mandvekar <lsm5@redhat.com>
  • Loading branch information
lsm5 committed Apr 17, 2024
1 parent 9697a5f commit da13f84
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions .github/workflows/upload-win-installer.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
name: Upload Windows Installer

on:
release:
types: [created, published, edited]
pull_request:
branches:
- main
#release:
#types: [created, published, edited]
workflow_dispatch:
inputs:
version:
Expand All @@ -29,14 +32,15 @@ jobs:
- name: Consolidate dryrun setting to always be true or false
id: actual_dryrun
run: |
Write-Output "dryrun=true" | Out-File -FilePath $env:GITHUB_OUTPUT -Append
# The 'release' trigger will not have a 'dryrun' input set. Handle
# this case in a readable/maintainable way.
$inputs_dryrun = "${{ inputs.dryrun }}"
if ($inputs_dryrun.Length -lt 1) {
Write-Output "dryrun=false" | Out-File -FilePath $env:GITHUB_OUTPUT -Append
} else {
Write-Output "dryrun=${{ inputs.dryrun }}" | Out-File -FilePath $env:GITHUB_OUTPUT -Append
}
#$inputs_dryrun = "${{ inputs.dryrun }}"
#if ($inputs_dryrun.Length -lt 1) {
# Write-Output "dryrun=false" | Out-File -FilePath $env:GITHUB_OUTPUT -Append
#} else {
# Write-Output "dryrun=${{ inputs.dryrun }}" | Out-File -FilePath $env:GITHUB_OUTPUT -Append
#}
- name: Dry Run Status
run: |
Write-Output "::notice::This workflow execution will be a dry-run: ${{ steps.actual_dryrun.outputs.dryrun }}"
Expand Down

0 comments on commit da13f84

Please sign in to comment.