@@ -123,7 +123,7 @@ runs:
123123 shell : bash
124124 run : |
125125 RELEASE_URL="https://api.github.com/repos/davegarvey/grubble/releases/latest"
126- RELEASE_DATA=$(curl -s "$RELEASE_URL")
126+ RELEASE_DATA=$(curl -sS "$RELEASE_URL")
127127 VERSION=$(echo "$RELEASE_DATA" | jq -r '.tag_name')
128128
129129 if [ "$VERSION" = "null" ] || [ -z "$VERSION" ]; then
@@ -137,22 +137,24 @@ runs:
137137 - name : Download binary
138138 shell : bash
139139 run : |
140+ echo "::group::Download grubble binary"
140141 DOWNLOAD_URL="https://github.com/davegarvey/grubble/releases/download/${{ steps.release.outputs.version }}/${{ steps.detect.outputs.archive }}"
141- echo "Downloading from: $DOWNLOAD_URL"
142142
143- if ! curl -L -f -o "${{ steps.detect.outputs.archive }}" "$DOWNLOAD_URL"; then
143+ if ! curl -sSL -f -o "${{ steps.detect.outputs.archive }}" "$DOWNLOAD_URL"; then
144144 echo "::error::Failed to download binary from $DOWNLOAD_URL"
145145 exit 1
146146 fi
147147
148- echo "Successfully downloaded ${{ steps.detect.outputs.archive }}"
148+ echo "Downloaded ${{ steps.detect.outputs.archive }}"
149+ echo "::endgroup::"
149150
150151 - name : Verify checksum
151152 shell : bash
152153 run : |
154+ echo "::group::Verify checksum"
153155 CHECKSUM_URL="https://github.com/davegarvey/grubble/releases/download/${{ steps.release.outputs.version }}/${{ steps.detect.outputs.archive }}.sha256"
154156
155- if ! curl -L -f -o "${{ steps.detect.outputs.archive }}.sha256" "$CHECKSUM_URL"; then
157+ if ! curl -sSL -f -o "${{ steps.detect.outputs.archive }}.sha256" "$CHECKSUM_URL"; then
156158 echo "::warning::Failed to download checksum file, skipping verification"
157159 else
158160 if [ "${{ steps.detect.outputs.os }}" = "Windows" ]; then
@@ -165,28 +167,33 @@ runs:
165167 fi
166168 else
167169 # Unix verification
168- if ! shasum -a 256 -c "${{ steps.detect.outputs.archive }}.sha256"; then
170+ if ! shasum -a 256 -c "${{ steps.detect.outputs.archive }}.sha256" 2>&1 | grep -v "OK$" ; then
169171 echo "::error::Checksum verification failed"
170172 exit 1
171173 fi
172174 fi
173- echo "Checksum verification passed "
175+ echo "✓ Checksum verified "
174176 fi
177+ echo "::endgroup::"
175178
176179 - name : Extract binary (Unix)
177180 if : steps.detect.outputs.os != 'Windows'
178181 shell : bash
179182 run : |
183+ echo "::group::Extract binary"
180184 tar xzf "${{ steps.detect.outputs.archive }}"
181185 chmod +x grubble
182- echo "Binary extracted and made executable"
186+ echo "✓ Binary ready"
187+ echo "::endgroup::"
183188
184189 - name : Extract binary (Windows)
185190 if : steps.detect.outputs.os == 'Windows'
186191 shell : pwsh
187192 run : |
193+ Write-Output "::group::Extract binary"
188194 Expand-Archive -Path "${{ steps.detect.outputs.archive }}" -DestinationPath . -Force
189- Write-Output "Binary extracted"
195+ Write-Output "✓ Binary ready"
196+ Write-Output "::endgroup::"
190197
191198 - name : Get current version
192199 id : current
@@ -198,7 +205,6 @@ runs:
198205 CURRENT_VERSION=$(./grubble --raw 2>/dev/null || echo "0.0.0")
199206 fi
200207 echo "previous_version=$CURRENT_VERSION" >> $GITHUB_OUTPUT
201- echo "Current version: $CURRENT_VERSION"
202208
203209 - name : Run bump
204210 id : bump
@@ -258,8 +264,6 @@ runs:
258264 ARGS="$ARGS --update-minor-tag"
259265 fi
260266
261- echo "Running: grubble $ARGS"
262-
263267 if [ "${{ steps.detect.outputs.os }}" = "Windows" ]; then
264268 OUTPUT=$(./grubble.exe $ARGS 2>&1) || {
265269 echo "::error::Grubble command failed: $OUTPUT"
@@ -282,7 +286,6 @@ runs:
282286 fi
283287
284288 echo "version=$NEW_VERSION" >> $GITHUB_OUTPUT
285- echo "New version: $NEW_VERSION"
286289
287290 # Determine bump type
288291 PREV="${{ steps.current.outputs.previous_version }}"
0 commit comments