ScoopInstaller / GithubActions

Github Actions for Scoop buckets
MIT License
23 stars 20 forks source link

Improve GitHub Action log output for reduced debug information and better readability #33

Open StarsbySea opened 1 year ago

StarsbySea commented 1 year ago

I'd like to request a reduction in the amount of debug information outputted to the console by the GitHub Action ScoopInstaller/GithubActions when updating manifest files. As an example, in this action run, the actual update information only starts at line 374. The preceding content, which is the same for each environment configuration, makes it difficult to quickly identify relevant details. I propose either reducing the debug information displayed or providing a debug switch that enables detailed information only during development.

Additionally, it's challenging to determine which manifest files have been successfully updated and which have failed. The log output lacks clear separators between updates, making troubleshooting time-consuming. For instance, in the example below, there is no clear indication of success or failure, and it requires reading several lines to find the necessary information:

civo: 1.0.53 (scoop version is 1.0.52) autoupdate available
Autoupdating civo
Searching hash for civo-1.0.53-windows-amd64.zip in https://github.com/civo/cli/releases/download/v1.0.53/civo-1.0.53-checksums.sha256
Found: 816e4ac5723d1b32c18b57c2e62a5822c6fbbf4b4e8bad022d2be56c8ea097b9 using Extract Mode
Writing updated civo manifest
chatterino7: 7.4.3 (scoop version is 7.4.2) autoupdate available
Autoupdating chatterino7
Searching hash for Chatterino7.Portable.zip in https://github.com/SevenTV/chatterino7/releases/download/v7.4.3/sha256-checksums.txt
Could not find hash in https://github.com/SevenTV/chatterino7/releases/download/v7.4.3/sha256-checksums.txt
Downloading Chatterino7.Portable.zip to compute hashes!
VERBOSE: GET with 0-byte payload
VERBOSE: received 16860-byte response of content type application/json
VERBOSE: Content encoding: utf-8
The remote server returned an error: (404) Not Found.
URL https://github.com/SevenTV/chatterino7/releases/download/v7.4.3/Chatterino7.Portable.zip is not valid
ERROR Could not update chatterino7, hash for Chatterino7.Portable.zip failed!

I kindly request improvements to the log output within the GitHub Action to make maintenance tasks easier for maintainers. Thank you for your consideration!

rashil2000 commented 1 year ago

I wholeheartedly agree with your suggestions. Would you like to submit a PR? I'll have a look at it as soon as possible.