TP-39914 | fix
This commit is contained in:
30
.github/workflows/codePush.yml
vendored
30
.github/workflows/codePush.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user