diff --git a/action.yml b/action.yml index a03f0a0..248127b 100644 --- a/action.yml +++ b/action.yml @@ -31,9 +31,9 @@ runs: shell: pwsh env: URI: ${{ format('-Uri {0}', inputs.uri) }} - FILENAME: ${{ inputs.filename != '' && format(' -OutFile "{0}"') || '' }} - USER_AGENT: ${{ inputs.user-agent != '' && format(' -UserAgent "{0}"') || '' }} - MAX_REDIRECTIONS: ${{ inputs.max-redirections != 5 && format(' -MaximumRedirection {0}') || '' }} + FILENAME: ${{ inputs.filename != '' && format(' -OutFile "{0}"', inputs.filename) || '' }} + USER_AGENT: ${{ inputs.user-agent != '' && format(' -UserAgent "{0}"', inputs.user-agent) || '' }} + MAX_REDIRECTIONS: ${{ inputs.max-redirections != 5 && format(' -MaximumRedirection {0}', inputs.max-redirections) || '' }} RETRIES: ${{ inputs.retries != 3 && format(' -MaximumRetryCount {0}', inputs.retries) || '' }} run: | Invoke-WebRequest ${{env.URI}}${{env.FILENAME}}${{env.MAX_REDIRECTIONS}}${{env.RETRIES}}