Skip to content

Commit

Permalink
Add required shell property
Browse files Browse the repository at this point in the history
  • Loading branch information
kvanbere committed Oct 7, 2023
1 parent 58de7b7 commit 2cbdbd4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,11 @@ runs:
run: export DISPLAY="127.0.0.1:10.0"
if: runner.os == 'Linux'
- name: Invoke URI (Windows)
if: runner.os == 'Windows'
shell: pwsh
env:
URI: ${{ format('-Uri {0}', inputs.uri) }}
FILENAME: ${{ inputs.filename > 0 && format(' -OutFile "{0}"') || '' }}
RETRIES: ${{ inputs.retries > 0 && format(' -MaximumRetryCount {0}', inputs.retries) || '' }}
run: |
Invoke-WebRequest ${{env.URI}}${{env.FILENAME}}${{env.RETRIES}}
if: runner.os == 'Windows'

0 comments on commit 2cbdbd4

Please sign in to comment.