frantjc / sequence

MIT License
0 stars 0 forks source link

be able to parse GitHub Action output #22

Closed frantjc closed 2 years ago

frantjc commented 2 years ago

GitHub Actions output some garbage like:

::save-state name=isPost::true
::debug::GITHUB_WORKSPACE = '/sqnc/workspace'
::debug::qualified repository = 'frantjc/containuity'
::debug::ref = 'refs/heads/6d60944b4c4bf5e1ac5207890b40165cfa1df36a refs/heads/pivot'
::debug::commit = '6d60944b4c4bf5e1ac5207890b40165cfa1df36a'
::debug::clean = true
::debug::fetch depth = 1
::debug::lfs = false
::debug::submodules = false
::debug::recursive submodules = false

to stdout/sterr which is supposed to mean something to the runner.

for example, lines beginning with ::debug:: only get printed if some GitHub secret is set to "true"

we'll need some implementation of a ReadWriter (?) that will parse out such things and do the proper action

frantjc commented 2 years ago

started by https://github.com/frantjc/sequence/pull/35

frantjc commented 2 years ago

resolved aside from a few silly commands like group, endgroup, addmatcher, add-mask and echo