kiegroup / act-js

A node.js wrapper for nektos/act to programmatically run your github actions locally
Apache License 2.0
53 stars 8 forks source link

Parse `set-env` and `add-path` from logs #73

Open TWiStErRob opened 5 months ago

TWiStErRob commented 5 months ago

Feature request Same as #66, but for other commands. Note #70 might invalidate this?

Additional context Example:

[Android Build/Unit Tests]   ✅  Success - Main Set up Java for Android SDK.
[Android Build/Unit Tests]   ⚙  ::set-env:: JAVA_HOME=/opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/17.0.10-7/x64
[Android Build/Unit Tests]   ⚙  ::set-env:: JAVA_HOME_17_X64=/opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/17.0.10-7/x64
[Android Build/Unit Tests]   ⚙  ::set-output:: distribution=Temurin-Hotspot
[Android Build/Unit Tests]   ⚙  ::set-output:: path=/opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/17.0.10-7/x64
[Android Build/Unit Tests]   ⚙  ::set-output:: version=17.0.10+7
[Android Build/Unit Tests]   ⚙  ::add-path:: /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/17.0.10-7/x64/bin
TWiStErRob commented 5 months ago

There are more: https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions (opened https://github.com/kiegroup/act-js/issues/76 for messages)