From 640a648b60cddeb43d47238080c1a6b93f94a850 Mon Sep 17 00:00:00 2001 From: jharajeev55 Date: Thu, 19 Sep 2024 10:59:04 +0530 Subject: [PATCH] fixing release and publish jobs (#6) --- .github/workflows/pr.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 88513c1..b1869e4 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -32,7 +32,7 @@ jobs: publish: name: Publish - if: ${{ (endsWith(github.base_ref, 'main') && (contains(github.head_ref, 'release/')) && github.event.pull_request.merged ) }} + if: ${{ (endsWith(github.base_ref, 'main') && (contains(github.head_ref, 'release/')) || github.event.pull_request.merged ) }} needs: - package runs-on: ubuntu-latest @@ -77,7 +77,7 @@ jobs: release: name: Release - if: ${{ (endsWith(github.base_ref, 'main') && (contains(github.head_ref, 'release/')) && github.event.pull_request.merged ) }} + if: ${{ (endsWith(github.base_ref, 'main') && (contains(github.head_ref, 'release/')) || github.event.pull_request.merged ) }} needs: - publish runs-on: ubuntu-latest