TP-39914 | fix

This commit is contained in:
Aman Chaturvedi
2024-03-11 23:39:08 +05:30
parent 1e89238a80
commit 837859736b

View File

@@ -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