Skip to content

Commit

Permalink
Fixed bug with download
Browse files Browse the repository at this point in the history
  • Loading branch information
jackton1 committed Mar 9, 2023
1 parent 04ddf38 commit 3881916
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,6 @@ jobs:
id: branch-name
if: "startsWith(github.ref, 'refs/tags/')"
uses: tj-actions/branch-names@v6
with:
strip_tag_prefix: v

- name: Test action
uses: ./
Expand Down
4 changes: 2 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ runs:
if [[ -z "$BIN_PATH" ]]; then
echo "Downloading auto-doc binary..."
LATEST_VERSION=${VERSION:-2.0.0}
LATEST_VERSION=${VERSION:-v2.0.0}
# Download the latest version
WINDOWS_TARGET=Windows_x86_64
Expand All @@ -114,7 +114,7 @@ runs:
OUTPUT_FILE="$TEMP_DIR"/auto-doc."$ARCHIVE"
for i in $(seq 1 5); do
curl --connect-timeout 300 -svLf https://github.com/tj-actions/auto-doc/releases/download/"$LATEST_VERSION"/auto-doc_"$LATEST_VERSION"_"$TARGET"."$ARCHIVE" -o "$OUTPUT_FILE" && break
curl --connect-timeout 300 -sLf https://github.com/tj-actions/auto-doc/releases/download/"$LATEST_VERSION"/auto-doc_"${LATEST_VERSION/v/}"_"$TARGET"."$ARCHIVE" -o "$OUTPUT_FILE" && break
sleep $DELAY
echo "$i retries"
done
Expand Down

0 comments on commit 3881916

Please sign in to comment.