From 5aa976dea48535be6b55f19a46230ca001877ab6 Mon Sep 17 00:00:00 2001 From: Bryan Gerlach Date: Sun, 15 Feb 2026 09:13:24 -0600 Subject: [PATCH] retry on failed download --- .../third-party-RustDeskTempTopMostWindow.yml | 25 +++++++++++-------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/.github/workflows/third-party-RustDeskTempTopMostWindow.yml b/.github/workflows/third-party-RustDeskTempTopMostWindow.yml index d235bee..73db6e9 100644 --- a/.github/workflows/third-party-RustDeskTempTopMostWindow.yml +++ b/.github/workflows/third-party-RustDeskTempTopMostWindow.yml @@ -69,16 +69,21 @@ jobs: # Build. commit 53b548a5398624f7149a382000397993542ad796 is tag v0.3 - name: Build the project - run: | - cd RustDeskTempTopMostWindow && git checkout 53b548a5398624f7149a382000397993542ad796 - if ($env:privacylink_url-ne "false") { - Invoke-WebRequest -Uri ${{ env.privacylink_url }}/get_png?filename=${{ env.privacylink_file }}"&"uuid=${{ env.privacylink_uuid }} -OutFile privacy.png - Invoke-WebRequest -Uri https://raw.githubusercontent.com/bryangerlach/rdgen/refs/heads/master/.github/patches/privacyScreen.py -OutFile privacyScreen.py - python privacyScreen.py - rm ./WindowInjection/img.cpp - mv img.cpp ./WindowInjection/img.cpp - } - msbuild ${{ env.project_path }} -p:Configuration=${{ inputs.configuration }} -p:Platform=${{ inputs.platform }} /p:TargetVersion=${{ inputs.target_version }} + uses: nick-fields/retry@v3 + with: + timeout_minutes: 1 + max_attempts: 3 + shell: pwsh + command: | + cd RustDeskTempTopMostWindow && git checkout 53b548a5398624f7149a382000397993542ad796 + if ($env:privacylink_url-ne "false") { + Invoke-WebRequest -Uri ${{ env.privacylink_url }}/get_png?filename=${{ env.privacylink_file }}"&"uuid=${{ env.privacylink_uuid }} -OutFile privacy.png + Invoke-WebRequest -Uri https://raw.githubusercontent.com/bryangerlach/rdgen/refs/heads/master/.github/patches/privacyScreen.py -OutFile privacyScreen.py + python privacyScreen.py + rm ./WindowInjection/img.cpp + mv img.cpp ./WindowInjection/img.cpp + } + msbuild ${{ env.project_path }} -p:Configuration=${{ inputs.configuration }} -p:Platform=${{ inputs.platform }} /p:TargetVersion=${{ inputs.target_version }} - name: Archive build artifacts uses: actions/upload-artifact@master