diff --git a/.github/workflows/packages.yml b/.github/workflows/packages.yml index 5104e8961..de1ddd918 100644 --- a/.github/workflows/packages.yml +++ b/.github/workflows/packages.yml @@ -18,10 +18,13 @@ jobs: environment: name: ppa steps: - - name: Clone the repositories - run: | - git clone https://github.com/canonical/dqlite - git clone https://github.com/canonical/dqlite-ppa -b dqlite-lts --depth 1 + - uses: actions/checkout@v4 + + - uses: actions/checkout@v4 + with: + repository: canonical/dqlite-ppa + ref: dqlite-lts + path: dqlite-ppa - name: Setup dependencies run: | @@ -49,9 +52,7 @@ jobs: DEBEMAIL: "dqlitebot@lists.canonical.com" TARGET: ${{ matrix.target }} run: | - echo Version $VERSION - cp -R dqlite-ppa/debian dqlite/ - cd dqlite/ + cp -R dqlite-ppa/debian . VERSION="$(git describe --tags | sed -e "s/^v//" -e "s/-/+git/")" dch --create \ --distribution ${TARGET} \