From 6dc6edefa2afed4a761c9848fc2373b5742c3282 Mon Sep 17 00:00:00 2001 From: Sergey Grigoriev Date: Wed, 7 Aug 2024 15:48:21 +0200 Subject: [PATCH] ci: fix expression --- .github/workflows/maven-build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/maven-build.yml b/.github/workflows/maven-build.yml index a4c0541..88d0dd7 100644 --- a/.github/workflows/maven-build.yml +++ b/.github/workflows/maven-build.yml @@ -99,7 +99,7 @@ jobs: deploy-maven-central: needs: build runs-on: ubuntu-latest - if: ${{ endsWith(needs.build.outputs.project_version, '-SNAPSHOT') && github.ref == 'refs/heads/main' }} + if: ${{ !endsWith(needs.build.outputs.project_version, '-SNAPSHOT') && github.ref == 'refs/heads/main' }} permissions: contents: read packages: write @@ -131,7 +131,7 @@ jobs: deploy-github-packages: needs: build runs-on: ubuntu-latest - if: ${{ endsWith(needs.build.outputs.version, '-SNAPSHOT') && github.ref == 'refs/heads/main' }} + if: ${{ !endsWith(needs.build.outputs.version, '-SNAPSHOT') && github.ref == 'refs/heads/main' }} permissions: contents: read packages: write