I am using the guidance provided in this very helpful and valuable article:
I got everything setup and the action is running within my workflow.
The problem I am now facing is... how do I call methods such as set-output and others as described here?
My Unix isn't all that good, hence the gravitation towards powershell. 😁
I did manage to find whereis, but it wasn't able to find the method in question:
Start-Process /usr/bin/whereis -ArgumentList "whereis" Start-Process /usr/bin/whereis -ArgumentList "set-output" whereis: /usr/bin/whereis set-output:
Any further guidance would be greatly appreciated!
Solved! Solved! Go to Solution.
As always, it appears that I am overcomplicating things. 😆
I was interpreting the "::" as a special Unix command, but it's a literal string that is further used to process during task execution of subsequent workflow steps.
So, when the documentation states "Logging Commands" it literally means to invoke commands via logging.
For instance, by using the following line:
echo "::warning file=app.js,line=1,col=5::Missing semicolon"
I was able to emit the warning message:
Hopefully this will help someone else learning the ropes here. 👍