From a99f7e9d1a28e28629ae7b61afe86543b06d8e22 Mon Sep 17 00:00:00 2001 From: Enrique Soria Date: Mon, 28 Nov 2022 21:59:38 +0100 Subject: [PATCH] feat: Test set-output --- action.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index c3b590a..83db07f 100644 --- a/action.yml +++ b/action.yml @@ -7,5 +7,10 @@ branding: runs: using: "composite" steps: - - run: python ${{ github.action_path }}/annotate_pr_with_ruff/main.py >> $GITHUB_STATE + - run: | + output=$(python ${{ github.action_path }}/annotate_pr_with_ruff/main.py) + output="${output//'%'/'%25'}" + output="${output//$'\n'/'%0A'}" + output="${output//$'\r'/'%0D'}" + echo "::set-output name=errors::$output" shell: bash