From 82e21318105237d79324b084699bb5ad0008bc4e Mon Sep 17 00:00:00 2001 From: Sophie Depassio Date: Fri, 13 Dec 2024 09:39:17 +0100 Subject: [PATCH] fix(ci): missing jammy in the promote action --- .github/actions/promote-to-stable/action.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/actions/promote-to-stable/action.yml b/.github/actions/promote-to-stable/action.yml index e0b519d017..1d93f0c1a7 100644 --- a/.github/actions/promote-to-stable/action.yml +++ b/.github/actions/promote-to-stable/action.yml @@ -66,15 +66,21 @@ runs: shell: bash - name: Promote DEB package to stable - if: ${{ contains(fromJSON('["bullseye", "bookworm"]'), inputs.distrib) }} + if: ${{ contains(fromJSON('["bullseye", "bookworm", "jammy"]'), inputs.distrib) }} run: | set -eux echo "[DEBUG] - Distrib: ${{ inputs.distrib }}" echo "[DEBUG] - Distrib: ${{ inputs.module }}" + if [[ "${{ inputs.distrib }}" == "jammy" ]]; then + repo="ubuntu-plugins" + else + repo="apt-plugins" + fi + echo "[DEBUG] - Get path of testing DEB packages to promote to stable." - SRC_PATHS=$(jf rt search --include-dirs apt-plugins-testing/pool/${{ inputs.module }}/*${{ steps.parse-distrib.outputs.package_distrib_name }}*.deb | jq -r '.[].path') + SRC_PATHS=$(jf rt search --include-dirs $repo-testing/pool/${{ inputs.module }}/*${{ steps.parse-distrib.outputs.package_distrib_name }}*.deb | jq -r '.[].path') if [[ ${SRC_PATHS[@]} ]]; then for SRC_PATH in ${SRC_PATHS[@]}; do @@ -86,7 +92,7 @@ runs: fi echo "[DEBUG] - Build target path." - TARGET_PATH="apt-plugins-${{ inputs.stability }}/pool/${{ inputs.module }}/" + TARGET_PATH="$repo-${{ inputs.stability }}/pool/${{ inputs.module }}/" echo "[DEBUG] - Target path: $TARGET_PATH" echo "[DEBUG] - Promoting DEB testing artifacts to stable."