From 3be5264368b3d4d4063f22a38f416813accd7e9c Mon Sep 17 00:00:00 2001 From: Altan Orhon Date: Thu, 21 Dec 2023 20:38:41 -0800 Subject: [PATCH] Updated workflow --- .github/workflows/apptainer-image.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/apptainer-image.yml b/.github/workflows/apptainer-image.yml index 65ff193..0d7f0b7 100644 --- a/.github/workflows/apptainer-image.yml +++ b/.github/workflows/apptainer-image.yml @@ -98,7 +98,7 @@ jobs: APPTAINER_LATEST_TAGNAME="$(gh release view --repo apptainer/apptainer --json tagName -t '{{.tagName}}' | head -n 1)" [[ -n "${APPTAINER_LATEST_TAGNAME}" ]] || { echo "No latest tag found for apptainer/apptainer"; exit 1; } echo "Latest tag for apptainer/apptainer is \"${APPTAINER_LATEST_TAGNAME}\"" - gh release download --repo apptainer/apptainer --pattern 'apptainer_*_amd64.deb' -O "${SETUP_DOWNLOADS_DIR}/apptainer_${APPTAINER_LATEST_TAGNAME}.deb" "${APPTAINER_LATEST_TAGNAME}" + gh release download --repo apptainer/apptainer --pattern 'apptainer_*_amd64.deb' --skip-existing -O "${SETUP_DOWNLOADS_DIR}/apptainer_${APPTAINER_LATEST_TAGNAME}.deb" "${APPTAINER_LATEST_TAGNAME}" sudo dpkg --install --force-depends "${SETUP_DOWNLOADS_DIR}/apptainer_${APPTAINER_LATEST_TAGNAME}.deb" && sudo apt-get install --fix-broken --yes --quiet apptainer --version - name: Download and Install oras-cli @@ -107,7 +107,7 @@ jobs: ORAS_LATEST_TAGNAME="$(gh release view --repo oras-project/oras --json tagName -t '{{.tagName}}' | head -n 1)" [[ -n "${ORAS_LATEST_TAGNAME}" ]] || { echo "No latest tag found for oras-project/oras"; exit 1; } echo "Latest tag for oras-project/oras is \"${ORAS_LATEST_TAGNAME}\"" - gh release download --repo oras-project/oras --pattern '*linux_amd64.tar.gz' -O "${SETUP_DOWNLOADS_DIR}/oras_${ORAS_LATEST_TAGNAME}.tar.gz" "${ORAS_LATEST_TAGNAME}" + gh release download --repo oras-project/oras --pattern '*linux_amd64.tar.gz' --skip-existing -O "${SETUP_DOWNLOADS_DIR}/oras_${ORAS_LATEST_TAGNAME}.tar.gz" "${ORAS_LATEST_TAGNAME}" sudo mkdir -p /opt/local/bin sudo tar -xzf "${SETUP_DOWNLOADS_DIR}/oras_${ORAS_LATEST_TAGNAME}_linux_amd64.tar.gz" -C /opt/local/bin oras && sudo chmod +x /opt/local/bin/oras export PATH="/opt/local/bin:${PATH}"