From a54127bb3da41607a282c2a3306d76792d7cef1b Mon Sep 17 00:00:00 2001 From: Jacob Brewer Date: Tue, 8 Oct 2024 15:45:05 +0100 Subject: [PATCH] fix(cicd): Correcting how we tag releases (#17) * updating how tags work * updating rc naming --- .github/workflows/create-release.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml index 77fa392..d9f2987 100644 --- a/.github/workflows/create-release.yml +++ b/.github/workflows/create-release.yml @@ -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 @@ -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