Skip to content

Commit

Permalink
support http proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
kevincobain2000 committed Jan 23, 2024
1 parent b27e10b commit ecce1aa
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ inputs:
destroy:
description: "Destroy all"
default: 'false'
http_proxy:
description: "HTTP Proxy if any"
default: ''
runs:
using: "composite"
steps:
Expand Down Expand Up @@ -78,6 +81,7 @@ runs:
run: |
curl -sLk --fail \
-X POST \
-x "${{ inputs.http_proxy }}" \
-H 'Content-Type: application/json' \
-H 'Authorization: ${{ github.token }}' \
-d '{
Expand All @@ -101,6 +105,7 @@ runs:
run: |
response=$(curl -sLk \
-X GET \
-x "${{ inputs.http_proxy }}" \
-H 'Content-Type: application/json' \
-w "%{http_code}" \
"${{inputs.host}}/pr?org=${{github.repository_owner}}&repo=${{ github.event.repository.name }}&type=${{ inputs.type }}&branch=${{ steps.branch-name.outputs.current_branch }}&base_branch=${{ steps.branch-name.outputs.base_ref_branch }}" \
Expand Down Expand Up @@ -128,6 +133,7 @@ runs:
run: |
curl -sLk --fail \
-X POST \
-x "${{ inputs.http_proxy }}" \
-H 'Content-Type: application/json' \
-H 'Authorization: ${{ github.token }}' \
-d '{
Expand Down

0 comments on commit ecce1aa

Please sign in to comment.