From 837859736bae4319b06193c5e60822a5bcda4364 Mon Sep 17 00:00:00 2001 From: Aman Chaturvedi Date: Mon, 11 Mar 2024 23:39:08 +0530 Subject: [PATCH] TP-39914 | fix --- .github/workflows/codePush.yml | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/codePush.yml b/.github/workflows/codePush.yml index 462a116e..680fe38e 100644 --- a/.github/workflows/codePush.yml +++ b/.github/workflows/codePush.yml @@ -69,21 +69,21 @@ jobs: - name: Create release tag run: | - TAG_NAME="${{ needs.generate.outputs.package_version }}" - RELEASE_NAME="$TAG_NAME (build ${{ needs.generate.outputs.build_number }})" + TAG_NAME="v${{ needs.generate.outputs.package_version }}" + RELEASE_NAME="Release $TAG_NAME" DESCRIPTION="${{ github.event.inputs.description }}" + REPO="navi-medici/address-verification-app" - # Create a release tag using the GitHub API - curl \ - -X POST \ - -H "Authorization: token ${{ secrets.MY_REPO_PAT }}" \ + curl -X POST \ + -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \ -H "Content-Type: application/json" \ - -d '{ - "tag_name": "'$TAG_NAME'", - "target_commitish": "main", - "name": "'$RELEASE_NAME'", - "body": "'$DESCRIPTION'", - "draft": false, - "prerelease": false - }' \ - https://api.github.com/repos/${{ github.repository }}/releases + -d "{ + \"tag_name\": \"$TAG_NAME\", + \"target_commitish\": \"main\", + \"name\": \"$RELEASE_NAME\", + \"body\": \"$DESCRIPTION\", + \"draft\": false, + \"prerelease\": false + }" \ + "https://api.github.com/repos/$REPO/releases" + shell: bash