Skip to content

New "set-output" command #2225

@rez1dent3

Description

@rez1dent3

Describe the bug
After reading the article, I began to update my github actions. But now there is a problem with escaping the string. Something like this already happened here: #267

To Reproduce
Steps to reproduce the behavior:

          OUTPUT="${OUTPUT//$'\n'/'%0A'}"
          OUTPUT="${OUTPUT//$'\r'/'%0D'}"
-         echo "::set-output name=stdout::$OUTPUT"
+         echo "stdout=$OUTPUT" >> $GITHUB_OUTPUT

Diff: https://github.com/bavix/laravel-wallet-benchmark/pull/33/files

Expected behavior
Hyphenation characters will be displayed correctly.

Expected table: bavix/laravel-wallet-benchmark#32 (comment)
Actual table: bavix/laravel-wallet-benchmark#33 (comment)


Do I understand correctly that now escaping is automatic and crutches at the github actions level are no longer needed?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions