47ng / actions-clever-cloud

GitHub Action to deploy to Clever Cloud
https://clever-cloud.com
MIT License
38 stars 9 forks source link

Log distribution #178

Closed franky47 closed 2 years ago

franky47 commented 2 years ago

Provide a way to pass deployment logs to other actions. This can be:

Because logs are printed to the standard output by the Clever Tools CLI, a way to hide them if they contain sensitive data could also be useful:

- uses: 47ng/actions-clever-cloud@version
  with:
    logs:
      stdout: false
franky47 commented 2 years ago

Notes:

Using an output variable is not recommended as those are limited in size (1MB).

The proposed argument structure above would not work well as there isn't a way to read nested structured data, so a flat set of distinct options would work better:

Another interesting thing would be to detect annotations in the log, and pass them back to GitHub. Because Clever Cloud adds a timestamp at the beginning of each line, annotations are not correctly detected.