Skip to content

Commit

Permalink
Use curl on macOS also
Browse files Browse the repository at this point in the history
  • Loading branch information
kvanbere committed Oct 7, 2023
1 parent d518e41 commit f502918
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ inputs:
runs:
using: "composite"
steps:
- name: Invoke URI (Linux)
if: runner.os == 'Linux'
- name: Invoke URI (macOS and Linux)
if: runner.os == 'Linux' || runner.os == 'macOS'
shell: bash
env:
METHOD: ${{ format('-X ''{0}''', inputs.method) }}
URI: ${{ format(' ''{0}''', inputs.uri) }}
URI: ${{ format(' --no-progress-meter ''{0}''', inputs.uri) }}
CONTENT_TYPE: "${{ format(' -H ''Content-Type: {0}''', inputs.content-type) }}"
FILENAME: ${{ inputs.filename != '' && format(' -o ''{0}''', inputs.filename) || '' }}
USER_AGENT: ${{ inputs.user-agent != '' && format(' --user-agent ''{0}''', inputs.user-agent) || '' }}
Expand Down

0 comments on commit f502918

Please sign in to comment.