|
37 | 37 | run: | |
38 | 38 | VERSION=$(cat version | tr -d '\n') |
39 | 39 | echo "version=$VERSION" >> $GITHUB_OUTPUT |
| 40 | + echo "tag_version=v$VERSION" >> $GITHUB_OUTPUT |
40 | 41 | echo "Creating release for version: $VERSION" |
41 | 42 | |
42 | 43 | - name: Generate changelog |
|
47 | 48 | |
48 | 49 | # Create a comprehensive changelog based on recent commits and version |
49 | 50 | case "$VERSION" in |
50 | | - "v1.8.0") |
| 51 | + "1.8.0") |
51 | 52 | CHANGELOG=$(cat << 'EOF' |
52 | 53 | ## 🚀 Plex Movie Suggester v1.8.0 - Enhanced Media Discovery |
53 | 54 | |
@@ -121,21 +122,21 @@ jobs: |
121 | 122 | id: check-tag |
122 | 123 | if: steps.check.outputs.changed == 'true' |
123 | 124 | 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 |
126 | 127 | echo "exists=true" >> $GITHUB_OUTPUT |
127 | | - echo "Tag $VERSION already exists" |
| 128 | + echo "Tag $TAG_VERSION already exists" |
128 | 129 | else |
129 | 130 | echo "exists=false" >> $GITHUB_OUTPUT |
130 | | - echo "Tag $VERSION does not exist" |
| 131 | + echo "Tag $TAG_VERSION does not exist" |
131 | 132 | fi |
132 | 133 | |
133 | 134 | - name: Create GitHub Release |
134 | 135 | if: steps.check.outputs.changed == 'true' && steps.check-tag.outputs.exists == 'false' |
135 | 136 | uses: softprops/action-gh-release@v1 |
136 | 137 | 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 }}" |
139 | 140 | body: ${{ steps.changelog.outputs.changelog }} |
140 | 141 | draft: false |
141 | 142 | prerelease: false |
|
0 commit comments