-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9df1e73
commit e98bb90
Showing
2 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
name: Nic Test | ||
|
||
on: [push] | ||
|
||
jobs: | ||
windows: | ||
runs-on: windows-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v1 | ||
with: | ||
path: ./src/github.com/${{ github.repository }} | ||
- name: Install CLI | ||
shell: bash | ||
run: ./scripts/test.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/bin/bash | ||
# | ||
curl --version | ||
echo "############################# Non-Redirect with -w" | ||
curl --tlsv1.2 --proto "=https" -w "%{http_code}" --silent --retry 5 -o "binary" -LN -D - "https://objects.githubusercontent.com/github-production-release-asset-2e65be/212754358/9c7f8213-3b1a-402a-b334-83c42c0b33d0?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=releaseassetproduction%2F20240613%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240613T151002Z&X-Amz-Expires=300&X-Amz-Signature=9374701e9836aba95ba627ab04515f0468b7e303bdf8470465e09068c335ecb8&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=212754358&response-content-disposition=attachment%3B%20filename%3Ddoppler_3.68.0_windows_amd64.zip&response-content-type=application%2Foctet-stream" 2>&1 | ||
echo "Status Code: $?" | ||
|
||
echo "############################# Redirect without -w" | ||
curl --tlsv1.2 --proto "=https" --silent --retry 5 -o "binary" -LN -D - "https://cli.doppler.com/download?os=windows&arch=amd64&format=zip" 2>&1 | ||
echo "Status Code: $?" | ||
|
||
echo "############################# Redirect with -w but no -L" | ||
curl --tlsv1.2 --proto "=https" -w "%{http_code}" --silent --retry 5 -o "binary" -N -D - "https://cli.doppler.com/download?os=windows&arch=amd64&format=zip" 2>&1 | ||
echo "Status Code: $?" | ||
|
||
echo "############################# Redirect without -w but no -L" | ||
curl --tlsv1.2 --proto "=https" --retry 5 -o "binary" -N -D - "https://cli.doppler.com/download?os=windows&arch=amd64&format=zip" 2>&1 | ||
echo "Status Code: $?" | ||
|
||
echo "############################# Redirect with -w Silent" | ||
curl --tlsv1.2 --proto "=https" -w "%{http_code}" --silent --retry 5 -o "binary" -LN -D - "https://cli.doppler.com/download?os=windows&arch=amd64&format=zip" 2>&1 | ||
echo "Status Code: $?" | ||
|
||
echo "############################# Redirect with -w Not Silent" | ||
curl --tlsv1.2 --proto "=https" -w "%{http_code}" --retry 5 -o "binary" -LN -D - "https://cli.doppler.com/download?os=windows&arch=amd64&format=zip" 2>&1 | ||
echo "Status Code: $?" |