From d0768614cfb13f6318ecc201ec2a054df71ce3c1 Mon Sep 17 00:00:00 2001 From: Daniel <77058885+0xDEnYO@users.noreply.github.com> Date: Tue, 30 Apr 2024 10:43:20 +0700 Subject: [PATCH] undo double quotes with single quotes replacement in github types action (#639) --- .github/workflows/types.yaml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/types.yaml b/.github/workflows/types.yaml index 40d873c1d..8ff915de1 100644 --- a/.github/workflows/types.yaml +++ b/.github/workflows/types.yaml @@ -100,12 +100,16 @@ jobs: jq '.version="${{ steps.bump_version.outputs.next-version }}"' package.json > "$tmp" && mv "$tmp" package.json git config user.name github-actions git config user.email github-actions@github.com - echo "Updating version from ${{ env.LATEST_TAG }} to ${{ steps.bump_version.outputs.next-version }}" + echo 'Updating version from ${{ env.LATEST_TAG }} to ${{ steps.bump_version.outputs.next-version }}' git add src/* git add dist/* git add package.json - git commit -m "actions: new contracts version ${{ steps.bump_version.outputs.next-version }}" - git tag -a v${{ steps.bump_version.outputs.next-version }} -m "${{ github.event.head_commit.message }}" + git commit -m 'actions: new contracts version ${{ steps.bump_version.outputs.next-version }}' + + # Sanitize the commit message by removing single quotes + COMMIT_MSG=$(echo "${{ github.event.head_commit.message }}" | sed "s/'//g") + + git tag -a v${{ steps.bump_version.outputs.next-version }} -m '${{ github.event.head_commit.message }}' git push origin tag v${{ steps.bump_version.outputs.next-version }} if [[ "$BRANCH_NAME" == "main" ]]; then git push -u origin $BRANCH_NAME