From 30cae099418c790911e7677d79f3576d935c9042 Mon Sep 17 00:00:00 2001 From: Jason Date: Sat, 8 Apr 2023 13:21:48 +0800 Subject: [PATCH] Retry for action-upload-webdav --- .github/workflows/build-jar.yml | 18 +++++++++++------- .github/workflows/build-linux.yml | 18 +++++++++++------- .github/workflows/build-windows.yml | 18 +++++++++++------- 3 files changed, 33 insertions(+), 21 deletions(-) diff --git a/.github/workflows/build-jar.yml b/.github/workflows/build-jar.yml index edace2e..9d2b9cb 100644 --- a/.github/workflows/build-jar.yml +++ b/.github/workflows/build-jar.yml @@ -63,11 +63,15 @@ jobs: run: ./gradlew --no-daemon :bootJar - name: Upload artifacts - uses: bxb100/action-upload-webdav@v1 + uses: Wandalen/wretry.action@master with: - webdav_address: ${{secrets.WEBDAV_ADDRESS}} - webdav_username: ${{secrets.WEBDAV_USERNAME}} - webdav_password: ${{secrets.WEBDAV_PASSWORD}} - webdav_upload_path: "/${{ env.VERSION_INFORMATION }}" - files: | - build/libs/aliyundrive-webdav-${{ env.VERSION_INFORMATION }}.jar + action: bxb100/action-upload-webdav@v1 + with: | + webdav_address: ${{secrets.WEBDAV_ADDRESS}} + webdav_username: ${{secrets.WEBDAV_USERNAME}} + webdav_password: ${{secrets.WEBDAV_PASSWORD}} + webdav_upload_path: "/${{ env.VERSION_INFORMATION }}" + files: | + build/libs/aliyundrive-webdav-${{ env.VERSION_INFORMATION }}.jar + attempt_limit: 3 + attempt_delay: 0 diff --git a/.github/workflows/build-linux.yml b/.github/workflows/build-linux.yml index 99293b1..83092e3 100644 --- a/.github/workflows/build-linux.yml +++ b/.github/workflows/build-linux.yml @@ -75,11 +75,15 @@ jobs: path: "./aliyundrive-webdav-${{matrix.target.suffix}}-${{matrix.target.arch}}" - name: Upload artifacts - uses: bxb100/action-upload-webdav@v1 + uses: Wandalen/wretry.action@master with: - webdav_address: ${{secrets.WEBDAV_ADDRESS}} - webdav_username: ${{secrets.WEBDAV_USERNAME}} - webdav_password: ${{secrets.WEBDAV_PASSWORD}} - webdav_upload_path: "/${{ env.VERSION_INFORMATION }}" - files: | - build/native/nativeCompile/aliyundrive-webdav-${{matrix.target.suffix}}-${{matrix.target.arch}}.tar.gz + action: bxb100/action-upload-webdav@v1 + with: | + webdav_address: ${{secrets.WEBDAV_ADDRESS}} + webdav_username: ${{secrets.WEBDAV_USERNAME}} + webdav_password: ${{secrets.WEBDAV_PASSWORD}} + webdav_upload_path: "/${{ env.VERSION_INFORMATION }}" + files: | + build/native/nativeCompile/aliyundrive-webdav-${{matrix.target.suffix}}-${{matrix.target.arch}}.tar.gz + attempt_limit: 3 + attempt_delay: 0 \ No newline at end of file diff --git a/.github/workflows/build-windows.yml b/.github/workflows/build-windows.yml index 0169b5b..32f54c7 100644 --- a/.github/workflows/build-windows.yml +++ b/.github/workflows/build-windows.yml @@ -68,11 +68,15 @@ jobs: path: "./aliyundrive-webdav-${{matrix.target.suffix}}-${{matrix.target.arch}}.exe" - name: Upload artifacts - uses: bxb100/action-upload-webdav@v1 + uses: Wandalen/wretry.action@master with: - webdav_address: ${{secrets.WEBDAV_ADDRESS}} - webdav_username: ${{secrets.WEBDAV_USERNAME}} - webdav_password: ${{secrets.WEBDAV_PASSWORD}} - webdav_upload_path: "/${{ env.VERSION_INFORMATION }}" - files: | - build/native/nativeCompile/aliyundrive-webdav-${{matrix.target.suffix}}-${{matrix.target.arch}}.exe.zip + action: bxb100/action-upload-webdav@v1 + with: | + webdav_address: ${{secrets.WEBDAV_ADDRESS}} + webdav_username: ${{secrets.WEBDAV_USERNAME}} + webdav_password: ${{secrets.WEBDAV_PASSWORD}} + webdav_upload_path: "/${{ env.VERSION_INFORMATION }}" + files: | + build/native/nativeCompile/aliyundrive-webdav-${{matrix.target.suffix}}-${{matrix.target.arch}}.exe.zip + attempt_limit: 3 + attempt_delay: 0 \ No newline at end of file