Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Leverage new echo-ing actions command capabilities #192

Closed
juliobbv opened this issue Oct 23, 2019 · 0 comments · Fixed by #411
Closed

Leverage new echo-ing actions command capabilities #192

juliobbv opened this issue Oct 23, 2019 · 0 comments · Fixed by #411
Labels
enhancement New feature or request

Comments

@juliobbv
Copy link

Describe the enhancement
The actions runner is planned to support two new commands to finely-grain control the echo-ing of logging commands: ::echo::off and ::echo::on.

This issue tracks leveraging the echo command where it's most convenient.

Code Snippet

The following actions workflow snippet:

    - name: Run a multi-line script
      run: |
        echo "::warning::This is a warning with default echo behavior off"
        echo "Setting echo to on"
        echo "::echo::on"
        echo "::warning::This is a warning with echo on"
        echo "Now, setting echo to off"
        echo "::echo::off"

...will produce the following output:

2019-10-23T17:47:03.6909317Z ##[warning]This is a warning with default echo behavior off
2019-10-23T17:47:03.6916653Z Setting echo to on
2019-10-23T17:47:03.6919213Z ::echo::on
2019-10-23T17:47:03.6919717Z ##[warning]This is a warning with echo on
2019-10-23T17:47:03.6920195Z ::warning::This is a warning with echo on
2019-10-23T17:47:03.6920396Z Now, setting echo to off
2019-10-23T17:47:03.7986205Z ##[warning]This is a warning with echo off

Additional information
N/A

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant