From d49cf21c3a7a83fb9c9727494f1abb05a9270229 Mon Sep 17 00:00:00 2001 From: Austin Date: Sun, 20 Sep 2026 18:18:14 +0000 Subject: [PATCH] Actions: Add a basic retry for PPA uploads (#11923) --- .github/workflows/package_ppa.yml | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/.github/workflows/package_ppa.yml b/.github/workflows/package_ppa.yml index 88d98e628a..ca3999bf3d 100644 --- a/.github/workflows/package_ppa.yml +++ b/.github/workflows/package_ppa.yml @@ -32,6 +32,9 @@ jobs: if: ${{ github.event_name != 'pull_request_target' && github.event_name != 'pull_request' }} runs-on: ubuntu-24.04 needs: build-debian-src + env: + up_ppa_repo: ${{ inputs.ppa_repo }} + up_series: ${{ inputs.series }} steps: - name: Checkout code uses: actions/checkout@v7 @@ -98,10 +101,21 @@ jobs: id: ssh - name: Publish with dput (sftp) + continue-on-error: true timeout-minutes: 30 # dput is terrible, sometimes runs 'forever' + id: publish_ppa + env: + up_version: ${{ steps.version.outputs.deb }} + run: > + dput -c /etc/meshtastic-dput.cf + ssh-${up_ppa_repo} + meshtasticd_${up_version}~${up_series}_source.changes + + # Only retry once if the initial publish fails + - name: "Retry: Publish with dput (sftp)" + if: steps.publish_ppa.outcome == 'failure' + timeout-minutes: 30 env: - up_ppa_repo: ${{ inputs.ppa_repo }} - up_series: ${{ inputs.series }} up_version: ${{ steps.version.outputs.deb }} run: > dput -c /etc/meshtastic-dput.cf