From 5cd5e4ae05b9b7b30db8eda0eccbb1acbf12ea93 Mon Sep 17 00:00:00 2001 From: Roberto Pastor Muela <37798125+RobPasMue@users.noreply.github.com> Date: Wed, 18 Dec 2024 10:59:55 +0100 Subject: [PATCH] fix: second approach --- .github/workflows/nightly_docker_test.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/nightly_docker_test.yml b/.github/workflows/nightly_docker_test.yml index 4f50fce23f..f7fa0823b7 100644 --- a/.github/workflows/nightly_docker_test.yml +++ b/.github/workflows/nightly_docker_test.yml @@ -69,7 +69,13 @@ jobs: id: services run: | docker manifest inspect ghcr.io/ansys/geometry:${{ matrix.container-stable }} > ${{ matrix.container-stable }}.json - docker manifest inspect ghcr.io/ansys/geometry:${{ matrix.container-unstable }} > ${{ matrix.container-unstable }}.json || "" > ${{ matrix.container-unstable }}.json + docker manifest inspect ghcr.io/ansys/geometry:${{ matrix.container-unstable }} > ${{ matrix.container-unstable }}.json || true + + # Verify that the unstable manifest exists - otherwise create an empty file + if [ ! -f ${{ matrix.container-unstable }}.json ]; then + touch ${{ matrix.container-unstable }}.json + fi + # Check if the manifests are the same (and if so, create an output that will skip the next job) if diff ${{ matrix.container-stable }}.json ${{ matrix.container-unstable }}.json; then