Skip to content

Commit

Permalink
fix(cicd): Correcting how we tag releases (#17)
Browse files Browse the repository at this point in the history
* updating how tags work

* updating rc naming
  • Loading branch information
Jacobbrewer1 authored Oct 8, 2024
1 parent 89eefe5 commit a54127b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
run: |
# Get the current version through the changelog file
version=$(cat changelog.md | grep "###" | head -n 1 | cut -d ' ' -f 2)
echo "version=$version" >> $GITHUB_ENV
echo "VERSION=$version" >> $GITHUB_ENV
- name: Create tag
uses: actions/github-script@v7
Expand All @@ -62,16 +62,16 @@ jobs:
github.rest.git.createRef({
owner: context.repo.owner,
repo: context.repo.repo,
ref: 'refs/tags/${{ steps.get_version.outputs.version }}',
ref: 'refs/tags/${{ env.VERSION }}',
sha: context.sha
})
- name: Create Release
uses: softprops/action-gh-release@v2
with:
name: ${{ github.event.inputs.version }}
name: ${{ env.VERSION }}
body: ${{ env.CHANGELOG }}
tag_name: ${{ github.event.inputs.version }}
tag_name: ${{ env.VERSION }}
draft: false
prerelease: false
generate_release_notes: false
Expand Down

0 comments on commit a54127b

Please sign in to comment.