|
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.1.0") |
| 51 | + "1.1.0") |
51 | 52 | CHANGELOG=$(cat << 'EOF' |
52 | 53 | ## 🚀 Raspberry Pi OLED System Info Display v1.1.0 - Enhanced Monitoring |
53 | 54 | |
@@ -123,21 +124,21 @@ jobs: |
123 | 124 | id: check-tag |
124 | 125 | if: steps.check.outputs.changed == 'true' |
125 | 126 | run: | |
126 | | - VERSION="${{ steps.version.outputs.version }}" |
127 | | - if git tag -l | grep -q "^$VERSION$"; then |
| 127 | + TAG_VERSION="${{ steps.version.outputs.tag_version }}" |
| 128 | + if git tag -l | grep -q "^$TAG_VERSION$"; then |
128 | 129 | echo "exists=true" >> $GITHUB_OUTPUT |
129 | | - echo "Tag $VERSION already exists" |
| 130 | + echo "Tag $TAG_VERSION already exists" |
130 | 131 | else |
131 | 132 | echo "exists=false" >> $GITHUB_OUTPUT |
132 | | - echo "Tag $VERSION does not exist" |
| 133 | + echo "Tag $TAG_VERSION does not exist" |
133 | 134 | fi |
134 | 135 | |
135 | 136 | - name: Create GitHub Release |
136 | 137 | if: steps.check.outputs.changed == 'true' && steps.check-tag.outputs.exists == 'false' |
137 | 138 | uses: softprops/action-gh-release@v1 |
138 | 139 | with: |
139 | | - tag_name: ${{ steps.version.outputs.version }} |
140 | | - name: "Pi HAT INFO ${{ steps.version.outputs.version }}" |
| 140 | + tag_name: ${{ steps.version.outputs.tag_version }} |
| 141 | + name: "Pi HAT INFO ${{ steps.version.outputs.tag_version }}" |
141 | 142 | body: ${{ steps.changelog.outputs.changelog }} |
142 | 143 | draft: false |
143 | 144 | prerelease: false |
|
0 commit comments