Skip to content

Commit

Permalink
Merge pull request #64 from chizmw/fix_our_v_version_usage
Browse files Browse the repository at this point in the history
Fix our v version usage
  • Loading branch information
chizmw authored Aug 14, 2023
2 parents 3f1f885 + 18600d8 commit 60121ab
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .changeset/metal-starfishes-appear.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'changesets-changelog-info': patch
---

fix: update our own version usage in github actions
2 changes: 1 addition & 1 deletion .github/workflows/changeset-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
if: steps.changesets.outputs.hasChangesets == 'false'
shell: bash
run: |
git tag ${{ steps.get-changelog-info.outputs.last-change-version }}
git tag ${{ steps.get-changelog-info.outputs.last-change-version-v }}
# this could fail in a merge without changesets
# (e.g. update README.md, merge)
# but that's a bit naughty anyway, so we'll let it fail
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/github-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ jobs:
if: steps.get-changelog-info.outputs.last-change-entry != ''
with:
body: ${{ steps.get-changelog-info.outputs.last-change-entry }}
tag_name: ${{ steps.get-changelog-info.outputs.last-change-version }}
name: ${{ steps.get-changelog-info.outputs.last-change-version }}
# yamllint disable-line rule:line-length
tag_name: ${{ steps.get-changelog-info.outputs.last-change-version-v }}
name: ${{ steps.get-changelog-info.outputs.last-change-version-v }}
draft: false
prerelease: false
8 changes: 5 additions & 3 deletions .github/workflows/update-doc-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
shell: bash
# yamllint disable rule:line-length
run: |
latest_version="${{ steps.get-changelog-info.outputs.last-change-version }}"
latest_version="${{ steps.get-changelog-info.outputs.last-change-version-v }}"
files="README.md"
# replace the version "latest-v0.0.4-blue" with the latest
Expand All @@ -42,8 +42,10 @@ jobs:
uses: peter-evans/create-pull-request@v5
with:
# yamllint disable rule:line-length
title: 'chore: update version in files (${{ steps.get-changelog-info.outputs.last-change-version}})'
commit-message: 'chore: update version in files (${{ steps.get-changelog-info.outputs.last-change-version}}) [skip ci]'
title: 'chore: update version in files (${{ steps.get-changelog-info.outputs.last-change-version-v}})'
commit-message: |
chore: update version in files (${{ steps.get-changelog-info.outputs.last-change-version-v}})
[skip ci]
base: ${{ github.event.repository.default_branch }}
delete-branch: true
token: ${{ secrets.CHANGESETS_TOKEN }}
Expand Down

0 comments on commit 60121ab

Please sign in to comment.