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 36b102a commit d2931cc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,8 @@ 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:-v2.0.0}
LATEST_VERSION=${VERSION:-2.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"_"$TARGET"."$ARCHIVE" -o "$OUTPUT_FILE" && break
sleep $DELAY
echo "$i retries"
done
Expand Down

0 comments on commit d2931cc

Please sign in to comment.