From f451332e36e973eef9a4163251684d111edb2b35 Mon Sep 17 00:00:00 2001 From: Timur Olzhabayev Date: Thu, 10 Nov 2022 12:02:04 +0100 Subject: [PATCH] Chore: Switching to new output format for detect breaking changes action (#58516) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Switching to new output format for detect breaking changes action * linting: wrap $GITHUB_OUTPUT with double quotes * linting: fix shellcheck issues in the right place 🤦‍♂️ Co-authored-by: Levente Balogh --- .github/workflows/detect-breaking-changes-build.yml | 4 ++-- scripts/check-breaking-changes.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/detect-breaking-changes-build.yml b/.github/workflows/detect-breaking-changes-build.yml index 55145015db4..e9beb73f709 100644 --- a/.github/workflows/detect-breaking-changes-build.yml +++ b/.github/workflows/detect-breaking-changes-build.yml @@ -26,7 +26,7 @@ jobs: - name: Get yarn cache directory path id: yarn-cache-dir-path - run: echo "::set-output name=dir::$(yarn config get cacheFolder)" + run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT - name: Restore yarn cache uses: actions/cache@v3.0.11 @@ -74,7 +74,7 @@ jobs: - name: Get yarn cache directory path id: yarn-cache-dir-path - run: echo "::set-output name=dir::$(yarn config get cacheFolder)" + run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT - name: Restore yarn cache uses: actions/cache@v3.0.11 diff --git a/scripts/check-breaking-changes.sh b/scripts/check-breaking-changes.sh index 98e45a20521..a3bc1abdc8c 100755 --- a/scripts/check-breaking-changes.sh +++ b/scripts/check-breaking-changes.sh @@ -48,8 +48,8 @@ while IFS=" " read -r -a package; do done <<< "$PACKAGES" # "Export" the message to an environment variable that can be used across Github Actions steps -echo "::set-output name=is_breaking::$EXIT_CODE" -echo "::set-output name=message::$GITHUB_MESSAGE" +echo "is_breaking=$EXIT_CODE" >> "$GITHUB_OUTPUT" +echo "message=$GITHUB_MESSAGE" >> "$GITHUB_OUTPUT" # We will exit the workflow accordingly at another step exit 0