Skip to content

Commit 12ee777

Browse files
Fix version format: use semantic versioning without 'v' prefix
- Update version file from v1.7.2.0 to 1.7.2.0 - Modify workflow to add 'v' prefix only for git tags and release names - Maintain clean version numbers in version file for consistency
1 parent b87f6f9 commit 12ee777

2 files changed

Lines changed: 9 additions & 8 deletions

File tree

.github/workflows/create-release.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ jobs:
3737
run: |
3838
VERSION=$(cat version | tr -d '\n')
3939
echo "version=$VERSION" >> $GITHUB_OUTPUT
40+
echo "tag_version=v$VERSION" >> $GITHUB_OUTPUT
4041
echo "Creating release for version: $VERSION"
4142
4243
- name: Generate changelog
@@ -47,7 +48,7 @@ jobs:
4748
4849
# Create a comprehensive changelog based on recent commits and version
4950
case "$VERSION" in
50-
"v1.8.0")
51+
"1.8.0")
5152
CHANGELOG=$(cat << 'EOF'
5253
## 🚀 Plex Movie Suggester v1.8.0 - Enhanced Media Discovery
5354
@@ -121,21 +122,21 @@ jobs:
121122
id: check-tag
122123
if: steps.check.outputs.changed == 'true'
123124
run: |
124-
VERSION="${{ steps.version.outputs.version }}"
125-
if git tag -l | grep -q "^$VERSION$"; then
125+
TAG_VERSION="${{ steps.version.outputs.tag_version }}"
126+
if git tag -l | grep -q "^$TAG_VERSION$"; then
126127
echo "exists=true" >> $GITHUB_OUTPUT
127-
echo "Tag $VERSION already exists"
128+
echo "Tag $TAG_VERSION already exists"
128129
else
129130
echo "exists=false" >> $GITHUB_OUTPUT
130-
echo "Tag $VERSION does not exist"
131+
echo "Tag $TAG_VERSION does not exist"
131132
fi
132133
133134
- name: Create GitHub Release
134135
if: steps.check.outputs.changed == 'true' && steps.check-tag.outputs.exists == 'false'
135136
uses: softprops/action-gh-release@v1
136137
with:
137-
tag_name: ${{ steps.version.outputs.version }}
138-
name: "Plex Movie Suggester ${{ steps.version.outputs.version }}"
138+
tag_name: ${{ steps.version.outputs.tag_version }}
139+
name: "Plex Movie Suggester ${{ steps.version.outputs.tag_version }}"
139140
body: ${{ steps.changelog.outputs.changelog }}
140141
draft: false
141142
prerelease: false

version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v1.7.2.0
1+
1.7.2.0

0 commit comments

Comments
 (0)