Skip to content

Commit 0795be6

Browse files
authored
Update generate_changelog_and_version.yml
1 parent 88ee6ec commit 0795be6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/generate_changelog_and_version.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,12 @@ jobs:
4343
run: echo "${{ steps.git-cliff.outputs.content }}" >> CHANGELOG.md
4444
- name: Update blog version in config.toml
4545
run: |
46-
sed -i '/version./c\ version="${{ needs.tag.outputs.new_tag }}"' config.toml
46+
sed -i 's/"Version": "[0-9]*\.[0-9]*\.[0-9]*"/"Version": "${{ needs.tag.outputs.new_tag }}"/g' config.json
4747
- name: Commit changes
4848
if: ${{ success() }}
4949
uses: EndBug/add-and-commit@v9
5050
with:
51-
add: '["CHANGELOG.md", "config.toml"]'
51+
add: '["CHANGELOG.md", "config.json"]'
5252
pull: "--rebase --autostash ."
5353
message: "chore(generated): changelog generated & version updated automatically"
5454
default_author: github_actions

0 commit comments

Comments
 (0)