From ef8dda96578fc2620fd6aa710822fc5a732bb5fb Mon Sep 17 00:00:00 2001 From: BBaoVanC Date: Wed, 1 Feb 2023 08:29:46 -0600 Subject: [PATCH] Replace deprecated set-output with $GITHUB_OUTPUT --- .github/workflows/audit.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/audit.yml b/.github/workflows/audit.yml index f013b7e..ec09bdf 100644 --- a/.github/workflows/audit.yml +++ b/.github/workflows/audit.yml @@ -2,8 +2,6 @@ name: Audit on: push: - branches: - - master pull_request: jobs: @@ -65,10 +63,10 @@ jobs: DOMAIN: localhost run: | urls="$(./changed-urls.sh)" - urls="${urls//'%'/'%25'}" - urls="${urls//$'\n'/'%0A'}" - urls="${urls//$'\r'/'%0D'}" - echo "::set-output name=urls::$urls" + echo "urls<> $GITHUB_OUTPUT + echo "$urls" >> $GITHUB_OUTPUT + echo "EOM" >> $GITHUB_OUTPUT + echo -e "CHANGED:\n$urls" - name: Install Caddy if: "${{ steps.changed_urls.outputs.urls != '' }}"