Skip to content

Commit

Permalink
undo double quotes with single quotes replacement in github types act…
Browse files Browse the repository at this point in the history
…ion (#639)
  • Loading branch information
0xDEnYO authored Apr 30, 2024
1 parent a9e6c37 commit d076861
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/types.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 [email protected]
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
Expand Down

0 comments on commit d076861

Please sign in to comment.