diff --git a/.github/workflows/launchpad_ppa.yml b/.github/workflows/launchpad_ppa.yml index 0e61fa88..581fe9bb 100644 --- a/.github/workflows/launchpad_ppa.yml +++ b/.github/workflows/launchpad_ppa.yml @@ -55,6 +55,13 @@ jobs: env: GH_TOKEN: ${{ github.token }} + - name: Preserve current packaging overlay + if: steps.check_distro.outputs.should_run == 'true' + run: | + rm -rf /tmp/bssh-packaging + mkdir -p /tmp/bssh-packaging + cp -a debian /tmp/bssh-packaging/debian + - name: Check out release tag if: steps.check_distro.outputs.should_run == 'true' uses: actions/checkout@v4 @@ -62,6 +69,12 @@ jobs: ref: ${{ steps.get_tag.outputs.tag }} fetch-depth: 0 + - name: Restore current packaging overlay + if: steps.check_distro.outputs.should_run == 'true' + run: | + rm -rf debian + cp -a /tmp/bssh-packaging/debian debian + - name: Update debian/changelog from release if: steps.check_distro.outputs.should_run == 'true' run: |