Skip to content

Commit

Permalink
set 'proxyAddress' input to send requests behind a proxy (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
dysonfrost authored Aug 8, 2023
1 parent 378ac9a commit 80c573d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ inputs:
description: "Set to true so that the action completes successfully if logs are detected on stderr"
required: false
default: "false"
proxyAddress:
description: "Address of the proxy server"
required: false
outputs:
status:
description: "Indicates the success or failure of the running tasks"
Expand All @@ -46,3 +49,4 @@ runs:
NOMAD_NAMESPACE: ${{ inputs.namespace }}
PARAMETERIZED_JOB: ${{ inputs.parameterized }}
ALLOW_STDERR: ${{ inputs.allow-stderr }}
http_proxy: ${{ inputs.proxyAddress }}
1 change: 1 addition & 0 deletions status.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ set -o pipefail
# NOMAD_NAMESPACE=""
# PARAMETERIZED_JOB="(true|false)"
# ALLOW_STDERR="(true|false)"
# http_proxy=""

function eval_variable {
local var=$(eval "${1}")
Expand Down

0 comments on commit 80c573d

Please sign in to comment.