From a3d352c115e5b2575c26fa0bc5812ba7ba2ca26e Mon Sep 17 00:00:00 2001 From: Roberto Pastor Muela <37798125+RobPasMue@users.noreply.github.com> Date: Fri, 11 Sep 2026 07:58:45 +0200 Subject: [PATCH 1/2] fix: improving stage skipping for releasing --- .github/workflows/build_and_package.yml | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build_and_package.yml b/.github/workflows/build_and_package.yml index 5bab7a9a..32757cd8 100644 --- a/.github/workflows/build_and_package.yml +++ b/.github/workflows/build_and_package.yml @@ -223,8 +223,12 @@ jobs: release: name: Release project - if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') needs: [build] + if: > + always() && + needs.build.result == 'success' && + github.event_name == 'push' && + startsWith(github.ref, 'refs/tags/v') runs-on: ubuntu-latest environment: release permissions: @@ -254,13 +258,23 @@ jobs: docker: + name: Build and push Docker image needs: [build, release] if: | always() && needs.build.result == 'success' && - ((github.event_name == 'schedule' && github.ref == 'refs/heads/main') || - (github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v'))) + ( + (github.event_name == 'schedule' && github.ref == 'refs/heads/main') || + ( + github.event_name == 'push' && + startsWith(github.ref, 'refs/tags/v') && + needs.release.result == 'success' + ) + ) runs-on: ubuntu-latest + permissions: + contents: read + packages: write steps: - name: Checkout repository uses: actions/checkout@v4 From 5748d564e49c1aa78108d1a7bf47dcbee185c548 Mon Sep 17 00:00:00 2001 From: pyansys-ci-bot <92810346+pyansys-ci-bot@users.noreply.github.com> Date: Fri, 11 Sep 2026 06:03:02 +0000 Subject: [PATCH 2/2] chore: adding changelog file 95.fixed.md [dependabot-skip] --- doc/changelog.d/95.fixed.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 doc/changelog.d/95.fixed.md diff --git a/doc/changelog.d/95.fixed.md b/doc/changelog.d/95.fixed.md new file mode 100644 index 00000000..6d6754c9 --- /dev/null +++ b/doc/changelog.d/95.fixed.md @@ -0,0 +1 @@ +Improving stage skipping for releasing