From de9d9444ed36f905f0d8244fc382764260ca253c Mon Sep 17 00:00:00 2001 From: Akhil Highflame Date: Wed, 14 Jan 2026 09:00:33 +0530 Subject: [PATCH] devops: Patching the release pipeline --- .github/workflows/release.yml | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f9ec17c..49b80c1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,23 +23,23 @@ jobs: fetch-depth: 0 persist-credentials: true - - name: Validate Release Branch - id: validate_branch - shell: bash - run: |- - export TAG_COMMIT=$(git rev-list -n 1 ${{ github.ref_name }}) - export TAG_BRANCH=$(git branch -r --contains ${TAG_COMMIT} | grep -v HEAD | head -n 1 | sed 's/origin\///' | sed 's/^[ \t]*//') - if [[ "${TAG_BRANCH}" == "${{ env.RELEASE_BRANCH }}" ]] ; then - echo "Valid Branch for Release : ${TAG_BRANCH}" - echo "enable_branch_build=true" >> ${GITHUB_OUTPUT} - else - echo "Invalid Branch for Release : ${TAG_BRANCH}" - echo "enable_branch_build=false" >> ${GITHUB_OUTPUT} - exit 1 - fi + # - name: Validate Release Branch + # id: validate_branch + # shell: bash + # run: |- + # export TAG_COMMIT=$(git rev-list -n 1 ${{ github.ref_name }}) + # export TAG_BRANCH=$(git branch -r --contains ${TAG_COMMIT} | grep -v HEAD | head -n 1 | sed 's/origin\///' | sed 's/^[ \t]*//') + # if [[ "${TAG_BRANCH}" == "${{ env.RELEASE_BRANCH }}" ]] ; then + # echo "Valid Branch for Release : ${TAG_BRANCH}" + # echo "enable_branch_build=true" >> ${GITHUB_OUTPUT} + # else + # echo "Invalid Branch for Release : ${TAG_BRANCH}" + # echo "enable_branch_build=false" >> ${GITHUB_OUTPUT} + # exit 1 + # fi - name: Validate Release Tag - if: ${{ steps.validate_branch.outputs.enable_branch_build == 'true' }} + # if: ${{ steps.validate_branch.outputs.enable_branch_build == 'true' }} id: validate_tag shell: bash run: |-